diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-10-03 17:02:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 17:02:36 +0100 |
commit | fa7b0412c16b8ac861337eb2e993cb68540fdaf6 (patch) | |
tree | cb003a5c240b1a95bb6d21b5d3d13c69b636435e | |
parent | 703ae7798802da3c711a238e40439d4f7ebcb5b7 (diff) | |
parent | 095eade5dea83123b28ee03f9d7522bbcddfcd91 (diff) | |
download | vyatta-cfg-quagga-fa7b0412c16b8ac861337eb2e993cb68540fdaf6.tar.gz vyatta-cfg-quagga-fa7b0412c16b8ac861337eb2e993cb68540fdaf6.zip |
T5576: Add BGP remove-private-as all option
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 |