summaryrefslogtreecommitdiff
path: root/data/templates/igmp-proxy/igmpproxy.conf.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-10 20:02:33 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-10 20:02:33 +0200
commit653d2fbce855b85aabb3d8cb6f8473541a0909f1 (patch)
treed6bb1427aa2289f918ee13ad34833ed20f5fcb9f /data/templates/igmp-proxy/igmpproxy.conf.tmpl
parent66dd2792a80050bf11e422074011fe38b7294302 (diff)
downloadvyos-1x-653d2fbce855b85aabb3d8cb6f8473541a0909f1.tar.gz
vyos-1x-653d2fbce855b85aabb3d8cb6f8473541a0909f1.zip
igmp-proxy: T4333: migrate to new vyos_defined Jinja2 test
Diffstat (limited to 'data/templates/igmp-proxy/igmpproxy.conf.tmpl')
-rw-r--r--data/templates/igmp-proxy/igmpproxy.conf.tmpl10
1 files changed, 5 insertions, 5 deletions
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 %}