diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-21 18:09:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 18:09:32 +0100 |
commit | a80cd3058cb8d9a9152c8c205d41175056c6fa52 (patch) | |
tree | 9f8b144dabf9bfcefaed16ee73627acbafb620f9 /data/templates/frr/bgp.frr.tmpl | |
parent | 0a6ca540da53d07e19e1186404d706757b2e5942 (diff) | |
parent | a0a88d2dea9710efd80b27b24b4f40b13c613768 (diff) | |
download | vyos-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/frr/bgp.frr.tmpl')
-rw-r--r-- | data/templates/frr/bgp.frr.tmpl | 10 |
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 |