Skip to content

Commit

Permalink
igmp: T5736: support per interface "disable" CLI node
Browse files Browse the repository at this point in the history
  • Loading branch information
c-po committed Nov 13, 2023
1 parent dd13213 commit 6ce2ecb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
32 changes: 16 additions & 16 deletions data/templates/frr/pimd.frr.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,28 @@ interface {{ iface }}
{% if iface_config.source_address is vyos_defined %}
ip pim use-source {{ iface_config.source_address }}
{% endif %}
{% if iface_config.igmp is vyos_defined %}
{% if iface_config.igmp is vyos_defined and iface_config.igmp.disable is not vyos_defined %}
ip igmp
{% endif %}
{% if iface_config.igmp.query_interval %}
{% if iface_config.igmp.query_interval %}
ip igmp query-interval {{ iface_config.igmp.query_interval }}
{% endif %}
{% if iface_config.igmp.query_max_response_time %}
{% 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 %}
{% 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 %}
{% 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 %}
{% endfor %}
{% else %}
ip igmp join {{ join }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
exit
{% endfor %}
Expand Down
1 change: 1 addition & 0 deletions interface-definitions/protocols-pim.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<help>Internet Group Management Protocol (IGMP) options</help>
</properties>
<children>
#include <include/generic-disable-node.xml.i>
<tagNode name="join">
<properties>
<help>IGMP join multicast group</help>
Expand Down

0 comments on commit 6ce2ecb

Please sign in to comment.