diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-13 09:38:49 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-13 10:17:31 +0000 |
commit | 095eade5dea83123b28ee03f9d7522bbcddfcd91 (patch) | |
tree | cb003a5c240b1a95bb6d21b5d3d13c69b636435e | |
parent | 703ae7798802da3c711a238e40439d4f7ebcb5b7 (diff) | |
download | vyatta-cfg-quagga-095eade5dea83123b28ee03f9d7522bbcddfcd91.tar.gz vyatta-cfg-quagga-095eade5dea83123b28ee03f9d7522bbcddfcd91.zip |
T5576: Add BGP remove-private-as all option
Add ability to to use option `all` for `remove-private-as`
Remove private ASNs in outbound updates.
all - Apply to all AS numbers
set protocols bgp <asn> neighbor <tag> address-family ipv4-unicast remove-private-as all
5 files changed, 20 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index 9b8d0a3a..07bef63d 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -370,6 +370,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 remove-private-AS', del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 remove-private-AS', }, + 'protocols bgp var neighbor var address-family ipv6-unicast remove-private-as all' => { + set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 remove-private-AS all', + del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 remove-private-AS all', + }, 'protocols bgp var neighbor var address-family ipv6-unicast route-map' => { set => undef, del => undef, @@ -514,6 +518,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 remove-private-AS', del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 remove-private-AS', }, + 'protocols bgp var neighbor var address-family ipv4-unicast remove-private-as all' => { + set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 remove-private-AS all', + del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 remove-private-AS all', + }, 'protocols bgp var neighbor var address-family ipv4-unicast route-map' => { set => undef, del => undef, @@ -964,6 +972,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 remove-private-AS', del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 remove-private-AS', }, + 'protocols bgp var peer-group var address-family ipv6-unicast remove-private-as all' => { + set => 'router bgp #3 ; address-family ipv6 ; neighbor #5 remove-private-AS all', + del => 'router bgp #3 ; address-family ipv6 ; no neighbor #5 remove-private-AS all', + }, 'protocols bgp var peer-group var address-family ipv6-unicast route-map' => { set => undef, del => undef, @@ -1106,6 +1118,10 @@ my %qcom = ( set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 remove-private-AS', del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 remove-private-AS', }, + 'protocols bgp var peer-group var address-family ipv4-unicast remove-private-as all' => { + set => 'router bgp #3 ; address-family ipv4 unicast ; neighbor #5 remove-private-AS all', + del => 'router bgp #3 ; address-family ipv4 unicast ; no neighbor #5 remove-private-AS all', + }, 'protocols bgp var peer-group var address-family ipv4-unicast route-map' => { set => undef, del => undef, diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def new file mode 100644 index 00000000..d57afa6d --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def @@ -0,0 +1 @@ +help: Remove private AS numbers to all AS numbers in outbound route updates diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def new file mode 100644 index 00000000..d57afa6d --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def @@ -0,0 +1 @@ +help: Remove private AS numbers to all AS numbers in outbound route updates diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def new file mode 100644 index 00000000..d57afa6d --- /dev/null +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def @@ -0,0 +1 @@ +help: Remove private AS numbers to all AS numbers in outbound route updates diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def new file mode 100644 index 00000000..d57afa6d --- /dev/null +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def @@ -0,0 +1 @@ +help: Remove private AS numbers to all AS numbers in outbound route updates |