summaryrefslogtreecommitdiff
path: root/data/templates/frr/pimd.frr.j2
blob: 7d6ddf8d474dc55d5d74c6c94ad9232107cb7bdb (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
{% 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.version is vyos_defined %}
 ip igmp version {{ iface_config.igmp.version }}
{%         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 %}
!