blob: f3303e4018e337ed5519b150bba381f47c84d18a (
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
|
{% if profile is vyos_defined or peer is vyos_defined %}
bfd
{% if profile is vyos_defined %}
{% for profile_name, profile_config in profile.items() %}
profile {{ profile_name }}
detect-multiplier {{ profile_config.interval.multiplier }}
receive-interval {{ profile_config.interval.receive }}
transmit-interval {{ profile_config.interval.transmit }}
{% if profile_config.interval.echo_interval is vyos_defined %}
echo transmit-interval {{ profile_config.interval.echo_interval }}
echo receive-interval {{ profile_config.interval.echo_interval }}
{% endif %}
{% if profile_config.echo_mode is vyos_defined %}
echo-mode
{% endif %}
{% if profile_config.minimum_ttl is vyos_defined %}
minimum-ttl {{ profile_config.minimum_ttl }}
{% endif %}
{% if profile_config.passive is vyos_defined %}
passive-mode
{% endif %}
{% if profile_config.shutdown is vyos_defined %}
shutdown
{% else %}
no shutdown
{% endif %}
exit
!
{% endfor %}
{% endif %}
{% if peer is vyos_defined %}
{% for peer_name, peer_config in peer.items() %}
peer {{ peer_name }} {{ 'multihop' if peer_config.multihop is vyos_defined }} {{ 'local-address ' ~ peer_config.source.address if peer_config.source.address is vyos_defined }} {{ 'interface ' ~ peer_config.source.interface if peer_config.source.interface is vyos_defined }} {{ 'vrf ' ~ peer_config.vrf if peer_config.vrf is vyos_defined }}
detect-multiplier {{ peer_config.interval.multiplier }}
receive-interval {{ peer_config.interval.receive }}
transmit-interval {{ peer_config.interval.transmit }}
{% if peer_config.interval.echo_interval is vyos_defined %}
echo transmit-interval {{ peer_config.interval.echo_interval }}
echo receive-interval {{ peer_config.interval.echo_interval }}
{% endif %}
{% if peer_config.echo_mode is vyos_defined %}
echo-mode
{% endif %}
{% if peer_config.minimum_ttl is vyos_defined %}
minimum-ttl {{ peer_config.minimum_ttl }}
{% endif %}
{% if peer_config.passive is vyos_defined %}
passive-mode
{% endif %}
{% if peer_config.profile is vyos_defined %}
profile {{ peer_config.profile }}
{% endif %}
{% if peer_config.shutdown is vyos_defined %}
shutdown
{% else %}
no shutdown
{% endif %}
exit
!
{% endfor %}
{% endif %}
exit
!
{% endif %}
|