From d72024b11e127cc11931cfaee4d07944dceb1ea9 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 13 Sep 2023 10:07:47 +0000 Subject: 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 address-family ipv4-unicast remove-private-as all --- data/templates/frr/bgpd.frr.j2 | 2 +- .../include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 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 diff --git a/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i b/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i index 75221a348..9ec513da9 100644 --- a/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i +++ b/interface-definitions/include/bgp/neighbor-afi-ipv4-ipv6-common.xml.i @@ -1,4 +1,5 @@ + Use addpath to advertise all paths to a neighbor @@ -156,12 +157,19 @@ #include - + Remove private AS numbers from AS path in outbound route updates - - + + + + Remove private AS numbers to all AS numbers in outbound route updates + + + + + #include #include #include -- cgit v1.2.3