summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-12 10:09:24 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-12 10:14:57 +0100
commitbddabbf696ec8ff638b93c5260aa4823dcc43df3 (patch)
tree9374260999db229acecbaaf44945b15d9fcd0bfc /data/templates
parent1d4c23ca9b62dfa6db6580440b21cd89c5d8f7e8 (diff)
downloadvyos-1x-bddabbf696ec8ff638b93c5260aa4823dcc43df3.tar.gz
vyos-1x-bddabbf696ec8ff638b93c5260aa4823dcc43df3.zip
bgp: T4069: add "parameters reject-as-sets" CLI option
This command enables rejection of incoming and outgoing routes having AS_SET or AS_CONFED_SET type.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/frr/bgpd.frr.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/frr/bgpd.frr.tmpl b/data/templates/frr/bgpd.frr.tmpl
index c04475070..e49aaf12c 100644
--- a/data/templates/frr/bgpd.frr.tmpl
+++ b/data/templates/frr/bgpd.frr.tmpl
@@ -534,6 +534,9 @@ router bgp {{ local_as }} {{ 'vrf ' ~ vrf if vrf is defined and vrf is not none
{% if parameters.no_fast_external_failover is defined %}
no bgp fast-external-failover
{% endif %}
+{% if parameters.reject_as_sets is defined %}
+ bgp reject-as-sets
+{% endif %}
{% if parameters.router_id is defined and parameters.router_id is not none %}
bgp router-id {{ parameters.router_id }}
{% endif %}