summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-10-03 17:02:36 +0100
committerGitHub <noreply@github.com>2023-10-03 17:02:36 +0100
commitfa7b0412c16b8ac861337eb2e993cb68540fdaf6 (patch)
treecb003a5c240b1a95bb6d21b5d3d13c69b636435e
parent703ae7798802da3c711a238e40439d4f7ebcb5b7 (diff)
parent095eade5dea83123b28ee03f9d7522bbcddfcd91 (diff)
downloadvyatta-cfg-quagga-fa7b0412c16b8ac861337eb2e993cb68540fdaf6.tar.gz
vyatta-cfg-quagga-fa7b0412c16b8ac861337eb2e993cb68540fdaf6.zip
Merge pull request #102 from sever-sever/T5576-eq1.3.61.3.51.3.4
T5576: Add BGP remove-private-as all option
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl16
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def1
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def1
-rw-r--r--templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv4-unicast/remove-private-as/all/node.def1
-rw-r--r--templates/protocols/bgp/node.tag/peer-group/node.tag/address-family/ipv6-unicast/remove-private-as/all/node.def1
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