diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-09 17:21:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 17:21:37 +0200 |
commit | 312370c9ef5c32a6a078d9deaeb5995276adbd48 (patch) | |
tree | be3120deed866bc300fbbbb85db2faf1d9bcd072 /data/templates/frr/pim6d.frr.j2 | |
parent | 795fcb74b6461d5ef4276a97b63c472461dda0a1 (diff) | |
parent | 99ed6c9edd07c9cedfb6d2654c6dee723a60c099 (diff) | |
download | vyos-1x-312370c9ef5c32a6a078d9deaeb5995276adbd48.tar.gz vyos-1x-312370c9ef5c32a6a078d9deaeb5995276adbd48.zip |
Merge pull request #2179 from vfreex/add-mld
T5518: Add basic MLD support
Diffstat (limited to 'data/templates/frr/pim6d.frr.j2')
-rw-r--r-- | data/templates/frr/pim6d.frr.j2 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/data/templates/frr/pim6d.frr.j2 b/data/templates/frr/pim6d.frr.j2 new file mode 100644 index 000000000..8e430541d --- /dev/null +++ b/data/templates/frr/pim6d.frr.j2 @@ -0,0 +1,38 @@ +! +{% if interface is vyos_defined %} +{% for iface, iface_config in interface.items() %} +interface {{ iface }} +{% if iface_config.mld is vyos_defined and iface_config.mld.disable is not vyos_defined %} + ipv6 mld +{% if iface_config.mld.version is vyos_defined %} + ipv6 mld version {{ iface_config.mld.version }} +{% endif %} +{% if iface_config.mld.interval is vyos_defined %} + ipv6 mld query-interval {{ iface_config.mld.interval }} +{% endif %} +{% if iface_config.mld.max_response_time is vyos_defined %} + ipv6 mld query-max-response-time {{ iface_config.mld.max_response_time // 100 }} +{% endif %} +{% if iface_config.mld.last_member_query_count is vyos_defined %} + ipv6 mld last-member-query-count {{ iface_config.mld.last_member_query_count }} +{% endif %} +{% if iface_config.mld.last_member_query_interval is vyos_defined %} + ipv6 mld last-member-query-interval {{ iface_config.mld.last_member_query_interval // 100 }} +{% endif %} +{% if iface_config.mld.join is vyos_defined %} +{% for group, group_config in iface_config.mld.join.items() %} +{% if group_config.source is vyos_defined %} +{% for source in group_config.source %} + ipv6 mld join {{ group }} {{ source }} +{% endfor %} +{% else %} + ipv6 mld join {{ group }} +{% endif %} +{% endfor %} +{% endif %} +{% endif %} +exit +! +{% endfor %} +! +{% endif %} |