diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-13 12:54:25 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-11-13 22:19:32 +0100 |
commit | bc83fb097719f5c4c803808572f690fbc367b9e5 (patch) | |
tree | f77b6db0ac6b784f75c75d70dd68e50e1e968eb2 /data/templates/frr/pimd.frr.j2 | |
parent | 45ea9ed72ee11809f69619a40ae243df562de39f (diff) | |
download | vyos-1x-bc83fb097719f5c4c803808572f690fbc367b9e5.tar.gz vyos-1x-bc83fb097719f5c4c803808572f690fbc367b9e5.zip |
igmp: T5736: migrate "protocols igmp" to "protocols pim"
IGMP and PIM are two different but related things.
FRR has both combined in pimd. As we use get_config_dict() and FRR reload it
is better to have both centrally stored under the same CLI node (as FRR does,
too) to just "fire and forget" the commit to the daemon.
"set protocols igmp interface eth1" -> "set protocols pim interface eth1 igmp"
Diffstat (limited to 'data/templates/frr/pimd.frr.j2')
-rw-r--r-- | data/templates/frr/pimd.frr.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/frr/pimd.frr.j2 b/data/templates/frr/pimd.frr.j2 index 7d6ddf8d4..97c5ff58b 100644 --- a/data/templates/frr/pimd.frr.j2 +++ b/data/templates/frr/pimd.frr.j2 @@ -27,9 +27,26 @@ interface {{ iface }} {% if iface_config.igmp is vyos_defined %} ip igmp {% endif %} +{% if iface_config.igmp.query_interval %} + ip igmp query-interval {{ iface_config.igmp.query_interval }} +{% endif %} +{% if iface_config.igmp.query_max_response_time %} + ip igmp query-max-response-time {{ iface_config.igmp.query_max_response_time }} +{% endif %} {% if iface_config.igmp.version is vyos_defined %} ip igmp version {{ iface_config.igmp.version }} {% endif %} +{% if iface_config.igmp.join is vyos_defined %} +{% for join, join_config in iface_config.igmp.join.items() %} +{% if join_config.source_address is vyos_defined %} +{% for source_address in join_config.source_address %} + ip igmp join {{ join }} {{ source_address }} +{% endfor %} +{% else %} + ip igmp join {{ join }} +{% endif %} +{% endfor %} +{% endif %} exit {% endfor %} {% endif %} |