summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWouter van Os <wouter0100@gmail.com>2019-07-08 09:52:17 +0200
committerDaniil Baturin <daniil@baturin.org>2019-07-08 10:56:17 +0200
commite53c009dfce46d5be144c64b5d8ca36a346e6554 (patch)
tree441aa7a58ffcd73fba56a017bcef670cbb793c35 /scripts
parenta43d24140ea6e7d72c7c430dfabd9dd3c7ad788d (diff)
downloadvyatta-cfg-quagga-e53c009dfce46d5be144c64b5d8ca36a346e6554.tar.gz
vyatta-cfg-quagga-e53c009dfce46d5be144c64b5d8ca36a346e6554.zip
[bgp] T1509: add support for replace-as in local-as BGP neighbor
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 1fef8de7..2f8459a3 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -559,6 +559,10 @@ my %qcom = (
set => 'router bgp #3 ; no neighbor #5 local-as #7 ; neighbor #5 local-as #7 no-prepend',
del => 'router bgp #3 ; no neighbor #5 local-as #7 no-prepend ; neighbor #5 local-as #7',
},
+ 'protocols bgp var neighbor var local-as var no-prepend replace-as' => {
+ set => 'router bgp #3 ; no neighbor #5 local-as #7 ; neighbor #5 local-as #7 no-prepend replace-as',
+ del => 'router bgp #3 ; neighbor #5 local-as #7 no-prepend',
+ },
'protocols bgp var neighbor var override-capability' => {
set => 'router bgp #3 ; neighbor #5 override-capability',
del => 'router bgp #3 ; no neighbor #5 override-capability',