diff options
author | Wouter van Os <wouter0100@gmail.com> | 2019-07-08 09:52:17 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-07-08 09:52:17 +0200 |
commit | d52b304f973397cf983b00e95b9d35a12bc8e2d9 (patch) | |
tree | 4e5848c8cd5b2bbb0877d70fe021a9cf9a54b0a3 | |
parent | 4d7e36351b5ee572278c66b391747abf57e6732e (diff) | |
download | vyatta-cfg-quagga-d52b304f973397cf983b00e95b9d35a12bc8e2d9.tar.gz vyatta-cfg-quagga-d52b304f973397cf983b00e95b9d35a12bc8e2d9.zip |
[bgp] T1509: add support for replace-as in local-as BGP neighbor
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 4 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.tag/no-prepend/replace-as/node.def | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl index fe62deb7..93fb601f 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -563,6 +563,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', diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.tag/no-prepend/replace-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.tag/no-prepend/replace-as/node.def new file mode 100644 index 00000000..52fbc0b0 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.tag/no-prepend/replace-as/node.def @@ -0,0 +1 @@ +help: Only prepend local-as when transmitting local-route updates to this peer. |