summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Attwood <logan.attwood@gmail.com>2017-02-17 20:48:29 -0400
committerPanagiotis Moustafellos <pmoust@elastic.co>2017-09-22 22:23:34 +0300
commita6b2ed1f5364682d626b40e5bb49723dda62748a (patch)
tree471eeda6f829e96daf1c72782d650b118d1f9167
parent89e93de5dc239c9f7d868b525054de2b887fa5b8 (diff)
downloadvyatta-cfg-quagga-a6b2ed1f5364682d626b40e5bb49723dda62748a.tar.gz
vyatta-cfg-quagga-a6b2ed1f5364682d626b40e5bb49723dda62748a.zip
Expose as-override option in bgpd in vyos
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl4
-rw-r--r--templates/protocols/bgp/node.tag/neighbor/node.tag/as-override/node.def1
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