summaryrefslogtreecommitdiff
path: root/data/templates/frr/bgpd.frr.j2
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-09-13 10:07:47 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-09-13 10:10:24 +0000
commitd72024b11e127cc11931cfaee4d07944dceb1ea9 (patch)
treed835fb31f4730d05173017f10ba3cf60ae4cceff /data/templates/frr/bgpd.frr.j2
parent4a51fb08e73d259bab87e154f99fb5c3e85fbc46 (diff)
downloadvyos-1x-d72024b11e127cc11931cfaee4d07944dceb1ea9.tar.gz
vyos-1x-d72024b11e127cc11931cfaee4d07944dceb1ea9.zip
T5576: Add BGP remove-private-as all option
Add the ability to use the option all for remove-private-as. Remove private ASNs in outbound updates. all - Apply to all AS numbers set protocols bgp neighbor <tag> address-family ipv4-unicast remove-private-as all
Diffstat (limited to 'data/templates/frr/bgpd.frr.j2')
-rw-r--r--data/templates/frr/bgpd.frr.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/frr/bgpd.frr.j2 b/data/templates/frr/bgpd.frr.j2
index 7fa974254..e1c102e16 100644
--- a/data/templates/frr/bgpd.frr.j2
+++ b/data/templates/frr/bgpd.frr.j2
@@ -170,7 +170,7 @@
{% endif %}
{% endif %}
{% if afi_config.remove_private_as is vyos_defined %}
- neighbor {{ neighbor }} remove-private-AS
+ neighbor {{ neighbor }} remove-private-AS {{ 'all' if afi_config.remove_private_as.all is vyos_defined }}
{% endif %}
{% if afi_config.route_reflector_client is vyos_defined %}
neighbor {{ neighbor }} route-reflector-client