diff options
author | Daniil Baturin <daniil@baturin.org> | 2017-10-05 20:08:38 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-05 20:08:38 +0700 |
commit | c45033d3a0afa2b2f8875fc569b0eb23084dc2d2 (patch) | |
tree | 471eeda6f829e96daf1c72782d650b118d1f9167 | |
parent | 89e93de5dc239c9f7d868b525054de2b887fa5b8 (diff) | |
parent | a6b2ed1f5364682d626b40e5bb49723dda62748a (diff) | |
download | vyatta-cfg-quagga-c45033d3a0afa2b2f8875fc569b0eb23084dc2d2.tar.gz vyatta-cfg-quagga-c45033d3a0afa2b2f8875fc569b0eb23084dc2d2.zip |
Merge pull request #16 from pmoust/expose-as-overried-in-bgpd-in-vyos
Expose as-override option in bgpd in vyos
-rwxr-xr-x | scripts/bgp/vyatta-bgp.pl | 4 | ||||
-rw-r--r-- | templates/protocols/bgp/node.tag/neighbor/node.tag/as-override/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 f475995f..1fc1e3c1 100755 --- a/scripts/bgp/vyatta-bgp.pl +++ b/scripts/bgp/vyatta-bgp.pl @@ -315,6 +315,10 @@ my %qcom = ( set => 'router bgp #3 ; neighbor #5 allowas-in #8', del => 'router bgp #3 ; no neighbor #5 allowas-in ; neighbor #5 allowas-in', }, + 'protocols bgp var neighbor var as-override' => { + set => 'router bgp #3 ; neighbor #5 as-override', + del => 'router bgp #3 ; no neighbor #5 as-override', + }, 'protocols bgp var neighbor var attribute-unchanged' => { set => 'router bgp #3 ; no neighbor #5 attribute-unchanged ; neighbor #5 attribute-unchanged ?as-path ?med ?next-hop', del => 'router bgp #3 ; no neighbor #5 attribute-unchanged ?as-path ?med ?next-hop', diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/as-override/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/as-override/node.def new file mode 100644 index 00000000..7f67513e --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/as-override/node.def @@ -0,0 +1 @@ +help: AS for routes sent to this neighbor to be the local AS |