summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCheeze_It <none@none.com>2021-01-17 16:32:45 -0700
committerCheeze_It <none@none.com>2021-01-20 14:42:17 -0700
commita0a88d2dea9710efd80b27b24b4f40b13c613768 (patch)
tree6eec8cbd3ee6d01f04224a57b6c96e73e64b24a8 /data
parent56ec3259b67c6441d992948a8bae95039194eb6c (diff)
downloadvyos-1x-a0a88d2dea9710efd80b27b24b4f40b13c613768.tar.gz
vyos-1x-a0a88d2dea9710efd80b27b24b4f40b13c613768.zip
bgp: T1875: Adding BGP listen range FRR feature
In this commit we are adding the FRR BGP listen range feature. Specifically it is useful for being able to specify a range in which BGP peers can connect to the local router.
Diffstat (limited to 'data')
-rw-r--r--data/templates/frr/bgp.frr.tmpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/frr/bgp.frr.tmpl b/data/templates/frr/bgp.frr.tmpl
index 74a9b8c30..b3aa8fe02 100644
--- a/data/templates/frr/bgp.frr.tmpl
+++ b/data/templates/frr/bgp.frr.tmpl
@@ -203,6 +203,16 @@ router bgp {{ asn }}
{% endfor %}
{% endif %}
!
+{% if listen is defined %}
+{% if listen.limit is defined and listen.limit is not none %}
+ bgp listen limit {{ listen.limit }}
+{% endif %}
+{% for prefix, options in listen.range.items() %}
+{% if options.peer_group is defined and options.peer_group is not none %}
+ bgp listen range {{ prefix }} peer-group {{ options.peer_group }}
+{% endif %}
+{% endfor %}
+{% endif %}
{% if parameters is defined %}
{% if parameters.always_compare_med is defined %}
bgp always-compare-med