From d52b304f973397cf983b00e95b9d35a12bc8e2d9 Mon Sep 17 00:00:00 2001 From: Wouter van Os Date: Mon, 8 Jul 2019 09:52:17 +0200 Subject: [bgp] T1509: add support for replace-as in local-as BGP neighbor --- scripts/bgp/vyatta-bgp.pl | 4 ++++ .../node.tag/local-as/node.tag/no-prepend/replace-as/node.def | 1 + 2 files changed, 5 insertions(+) create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/local-as/node.tag/no-prepend/replace-as/node.def 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. -- cgit v1.2.3