diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:28:34 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-05-01 20:28:34 +0200 |
commit | b6a307424451b197d57265f17692ba2033a0ff7f (patch) | |
tree | 8a7b7172d5ca27befb7900b0dba7e7eb2fcf5588 /data/templates/igmp-proxy/igmpproxy.conf.j2 | |
parent | 644a0fe475b137185ada36a6b7a0ca43259f1d0a (diff) | |
download | vyos-1x-b6a307424451b197d57265f17692ba2033a0ff7f.tar.gz vyos-1x-b6a307424451b197d57265f17692ba2033a0ff7f.zip |
igmp-proxy: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/igmp-proxy/igmpproxy.conf.j2')
-rw-r--r-- | data/templates/igmp-proxy/igmpproxy.conf.j2 | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/data/templates/igmp-proxy/igmpproxy.conf.j2 b/data/templates/igmp-proxy/igmpproxy.conf.j2 new file mode 100644 index 000000000..ab3c9fd31 --- /dev/null +++ b/data/templates/igmp-proxy/igmpproxy.conf.j2 @@ -0,0 +1,40 @@ +######################################################## +# +# autogenerated by igmp_proxy.py +# +# The configuration file must define one upstream interface, and one or more +# downstream interfaces. +# +# If multicast traffic originates outside the upstream subnet, the "altnet" +# option can be used in order to define legal multicast sources. +# +# The "quickleave" should be used to avoid saturation of the upstream link. The +# option should only be used if it's absolutely nessecary to accurately imitate +# just one Client. +# +######################################################## + +{% if disable_quickleave is not vyos_defined %} +quickleave +{% endif %} +{% if interface is vyos_defined %} +{% for iface, config in interface.items() %} + +# Configuration for {{ iface }} ({{ config.role }} interface) +{% 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 vyos_defined %} +{% for subnet in config.alt_subnet %} + altnet {{ subnet }} +{% endfor %} +{% endif %} +{% if config.whitelist is vyos_defined %} +{% for subnet in config.whitelist %} + whitelist {{ subnet }} +{% endfor %} +{% endif %} +{% endfor %} +{% endif %} |