From 653d2fbce855b85aabb3d8cb6f8473541a0909f1 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 10 Apr 2022 20:02:33 +0200 Subject: igmp-proxy: T4333: migrate to new vyos_defined Jinja2 test --- data/templates/igmp-proxy/igmpproxy.conf.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'data/templates/igmp-proxy') diff --git a/data/templates/igmp-proxy/igmpproxy.conf.tmpl b/data/templates/igmp-proxy/igmpproxy.conf.tmpl index e3966def3..f32d68e43 100644 --- a/data/templates/igmp-proxy/igmpproxy.conf.tmpl +++ b/data/templates/igmp-proxy/igmpproxy.conf.tmpl @@ -14,24 +14,24 @@ # ######################################################## -{% if disable_quickleave is not defined %} +{% if disable_quickleave is not vyos_defined %} quickleave {% endif %} -{% if interface is defined and interface is not none %} +{% if interface is vyos_defined %} {% for iface, config in interface.items() %} # Configuration for {{ iface }} ({{ config.role }} interface) -{% if config.role == 'disabled' %} +{% if config.role is vyos_defined('disabled') %} phyint {{ iface }} disabled {% else %} phyint {{ iface }} {{ config.role }} ratelimit 0 threshold {{ config.threshold }} {% endif %} -{% if config.alt_subnet is defined and config.alt_subnet is not none %} +{% if config.alt_subnet is vyos_defined %} {% for subnet in config.alt_subnet %} altnet {{ subnet }} {% endfor %} {% endif %} -{% if config.whitelist is defined and config.whitelist is not none %} +{% if config.whitelist is vyos_defined %} {% for subnet in config.whitelist %} whitelist {{ subnet }} {% endfor %} -- cgit v1.2.3