summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-05 20:44:38 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-05 20:44:38 +0200
commitf69924cf4dae420dbc871679df18d15c0a76225c (patch)
tree15f79e1591799b643a20490076c3b1f290893a0d /data
parentc3770f57a3227f0b9e93e209811ba347b1408bb7 (diff)
downloadvyos-1x-f69924cf4dae420dbc871679df18d15c0a76225c.tar.gz
vyos-1x-f69924cf4dae420dbc871679df18d15c0a76225c.zip
igmp-proxy: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data')
-rw-r--r--data/templates/igmp-proxy/igmpproxy.conf.tmpl37
1 files changed, 37 insertions, 0 deletions
diff --git a/data/templates/igmp-proxy/igmpproxy.conf.tmpl b/data/templates/igmp-proxy/igmpproxy.conf.tmpl
new file mode 100644
index 000000000..c7fc5cef5
--- /dev/null
+++ b/data/templates/igmp-proxy/igmpproxy.conf.tmpl
@@ -0,0 +1,37 @@
+########################################################
+#
+# 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.
+# (Se example...)
+#
+# 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 not disable_quickleave -%}
+quickleave
+{% endif -%}
+
+{% for interface in interfaces %}
+# Configuration for {{ interface.name }} ({{ interface.role }} interface)
+{% if interface.role == 'disabled' -%}
+phyint {{ interface.name }} disabled
+{%- else -%}
+phyint {{ interface.name }} {{ interface.role }} ratelimit 0 threshold {{ interface.threshold }}
+{%- endif -%}
+{%- for subnet in interface.alt_subnet %}
+ altnet {{ subnet }}
+{%- endfor %}
+{%- for subnet in interface.whitelist %}
+ whitelist {{ subnet }}
+{%- endfor %}
+{% endfor %}