summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-21 18:09:32 +0100
committerGitHub <noreply@github.com>2021-01-21 18:09:32 +0100
commita80cd3058cb8d9a9152c8c205d41175056c6fa52 (patch)
tree9f8b144dabf9bfcefaed16ee73627acbafb620f9 /data/templates
parent0a6ca540da53d07e19e1186404d706757b2e5942 (diff)
parenta0a88d2dea9710efd80b27b24b4f40b13c613768 (diff)
downloadvyos-1x-a80cd3058cb8d9a9152c8c205d41175056c6fa52.tar.gz
vyos-1x-a80cd3058cb8d9a9152c8c205d41175056c6fa52.zip
Merge pull request #690 from Cheeze-It/current
bgp: T1875: Adding BGP listen range FRR feature
Diffstat (limited to 'data/templates')
-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 db0de45da..68731abab 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