summaryrefslogtreecommitdiff
path: root/data/templates/frr/pimd.frr.j2
blob: 97c5ff58bf0ee8dfee517a1a53a4b6262d0753e8 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{% if interface is vyos_defined %}
{%     for iface, iface_config in interface.items() %}
!
interface {{ iface }}
 ip pim
{%         if iface_config.bfd is vyos_defined %}
 ip pim bfd {{ 'profile ' ~ iface_config.bfd.profile if iface_config.bfd.profile is vyos_defined }}
{%         endif %}
{%         if iface_config.no_bsm is vyos_defined %}
 no ip pim bsm
{%         endif %}
{%         if iface_config.dr_priority is vyos_defined %}
 ip pim drpriority {{ iface_config.dr_priority }}
{%         endif %}
{%         if iface_config.hello is vyos_defined %}
 ip pim hello {{ iface_config.hello }}
{%         endif %}
{%         if iface_config.no_unicast_bsm is vyos_defined %}
 no ip pim unicast-bsm
{%         endif %}
{%         if iface_config.passive is vyos_defined %}
 ip pim passive
{%         endif %}
{%         if iface_config.source_address is vyos_defined %}
 ip pim use-source {{ iface_config.source_address }}
{%         endif %}
{%         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 %}
!
{% if ecmp is vyos_defined %}
ip pim ecmp {{ 'rebalance' if ecmp.rebalance is vyos_defined }}
{% endif %}
{% if join_prune_interval is vyos_defined %}
ip pim join-prune-interval {{ join_prune_interval }}
{% endif %}
{% if keep_alive_timer is vyos_defined %}
ip pim rp keep-alive-timer {{ keep_alive_timer }}
{% endif %}
{% if packets is vyos_defined %}
ip pim packets {{ packets }}
{% endif %}
{% if register_accept_list is vyos_defined %}
ip pim register-accept-list {{ register_accept_list }}
{% endif %}
{% if register_suppress_time is vyos_defined %}
ip pim register-suppress-time {{ register_suppress_time }}
{% endif %}
{% if rp.address is vyos_defined %}
{%     for address, address_config in rp.address.items() %}
{%         for group in address_config.group %}
ip pim rp {{ address }} {{ group }}
{%         endfor %}
{%     endfor %}
{% endif %}
{% if send_v6_secondary is vyos_defined %}
ip pim send-v6-secondary
{% endif %}
{% if spt_switchover.infinity_and_beyond is vyos_defined %}
ip pim spt-switchover infinity-and-beyond {{ 'prefix-list ' ~ spt_switchover.infinity_and_beyond.prefix_list if spt_switchover.infinity_and_beyond.prefix_list is defined }}
{% endif %}
{% if ssm is vyos_defined %}
ip pim ssm {{ ssm }}
{% endif %}
!
{% if igmp.watermark_warning is vyos_defined %}
ip igmp watermark-warn {{ igmp.watermark_warning }}
{% endif %}
!