diff options
author | Christian Breunig <christian@breunig.cc> | 2023-12-18 17:19:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 17:19:05 +0100 |
commit | ceec796a3d3d999ffca90e57fc42fd0fa3f21ec3 (patch) | |
tree | b9fd44576821ab94308146130dd72367774993b9 /data | |
parent | f991faab2c0d95cbec5d46996b154145955572d7 (diff) | |
parent | 8a17966ed7ed13a5da8a17e4d67b6f163d260088 (diff) | |
download | vyos-1x-ceec796a3d3d999ffca90e57fc42fd0fa3f21ec3.tar.gz vyos-1x-ceec796a3d3d999ffca90e57fc42fd0fa3f21ec3.zip |
Merge pull request #2652 from vyos/mergify/bp/sagitta/pr-2627
T4163: Add BGP Monitoring Protocol BMP feature (backport #2627)
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/frr/bgpd.frr.j2 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2 index 641dac44a..679ba8b04 100644 --- a/data/templates/frr/bgpd.frr.j2 +++ b/data/templates/frr/bgpd.frr.j2 @@ -470,6 +470,38 @@ router bgp {{ system_as }} {{ 'vrf ' ~ vrf if vrf is vyos_defined }} {% endfor %} {% endif %} ! +{% if bmp is vyos_defined %} +{% if bmp.mirror_buffer_limit is vyos_defined %} + bmp mirror buffer-limit {{ bmp.mirror_buffer_limit }} + ! +{% endif %} +{% if bmp.target is vyos_defined %} +{% for bmp, bmp_config in bmp.target.items() %} + bmp targets {{ bmp }} +{% if bmp_config.mirror is vyos_defined %} + bmp mirror +{% endif %} +{% if bmp_config.monitor is vyos_defined %} +{% if bmp_config.monitor.ipv4_unicast.pre_policy is vyos_defined %} + bmp monitor ipv4 unicast pre-policy +{% endif %} +{% if bmp_config.monitor.ipv4_unicast.post_policy is vyos_defined %} + bmp monitor ipv4 unicast post-policy +{% endif %} +{% if bmp_config.monitor.ipv6_unicast.pre_policy is vyos_defined %} + bmp monitor ipv6 unicast pre-policy +{% endif %} +{% if bmp_config.monitor.ipv6_unicast.post_policy is vyos_defined %} + bmp monitor ipv6 unicast post-policy +{% endif %} +{% endif %} +{% if bmp_config.address is vyos_defined %} + bmp connect {{ bmp_config.address }} port {{ bmp_config.port }} min-retry {{ bmp_config.min_retry }} max-retry {{ bmp_config.max_retry }} +{% endif %} +{% endfor %} + exit +{% endif %} +{% endif %} {% if peer_group is vyos_defined %} {% for peer, config in peer_group.items() %} {{ bgp_neighbor(peer, config, true) }} |