summaryrefslogtreecommitdiff
path: root/data/templates/igmp-proxy/igmpproxy.conf.tmpl
blob: e3966def373f480723ccf999c827c86db918f329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 defined %}
quickleave
{% endif %}
{% if interface is defined and interface is not none %}
{%   for iface, config in interface.items() %}

# Configuration for {{ iface }} ({{ config.role }} interface)
{%     if config.role == '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 %}
{%       for subnet in config.alt_subnet %}
        altnet {{ subnet }}
{%       endfor %}
{%     endif %}
{%     if config.whitelist is defined and config.whitelist is not none %}
{%       for subnet in config.whitelist %}
        whitelist {{ subnet }}
{%       endfor %}
{%     endif %}
{%   endfor %}
{% endif %}