summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsusheela <susheela.vaidya@vyatta.com>2012-09-12 13:49:47 -0700
committersusheela <susheela.vaidya@vyatta.com>2012-09-12 13:49:47 -0700
commitaa40d2635185ca0c6ea7d65408222d9dda0a347e (patch)
tree2f2c7d2cd317ee3880d87e6dd1a40d3caf49a88f
parent41563446646940ded446e480a26554f7b6b2d0b9 (diff)
downloadvyatta-cfg-quagga-aa40d2635185ca0c6ea7d65408222d9dda0a347e.tar.gz
vyatta-cfg-quagga-aa40d2635185ca0c6ea7d65408222d9dda0a347e.zip
Config commands for bGP multipaths.
-rwxr-xr-xscripts/bgp/vyatta-bgp.pl12
-rw-r--r--templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def4
-rw-r--r--templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def4
-rw-r--r--templates/protocols/bgp/node.tag/maximum-paths/node.def1
4 files changed, 21 insertions, 0 deletions
diff --git a/scripts/bgp/vyatta-bgp.pl b/scripts/bgp/vyatta-bgp.pl
index 79ea43bf..cbe05f20 100755
--- a/scripts/bgp/vyatta-bgp.pl
+++ b/scripts/bgp/vyatta-bgp.pl
@@ -130,6 +130,18 @@ my %qcom = (
set => 'router bgp #3 ; aggregate-address #5 ?as-set ?summary-only',
del => 'router bgp #3 ; no aggregate-address #5 ?as-set ?summary-only',
},
+ 'protocols bgp var maximum-paths' => {
+ set => undef,
+ del => undef,
+ },
+ 'protocols bgp var maximum-paths ebgp' => {
+ set => 'router bgp #3 ; maximum-paths #6',
+ del => 'router bgp #3 ; no maximum-paths #6',
+ },
+ 'protocols bgp var maximum-paths ibgp' => {
+ set => 'router bgp #3 ; maximum-paths ibgp #6',
+ del => 'router bgp #3 ; no maximum-paths ibgp #6',
+ },
'protocols bgp var neighbor' => {
set => undef,
del => undef,
diff --git a/templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def b/templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def
new file mode 100644
index 00000000..c01ec064
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/maximum-paths/ebgp/node.def
@@ -0,0 +1,4 @@
+type: u32
+help: Maximum ebgp multipaths
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)"
+val_help: u32:1-255; EBGP multipaths
diff --git a/templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def b/templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def
new file mode 100644
index 00000000..b437ec0b
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/maximum-paths/ibgp/node.def
@@ -0,0 +1,4 @@
+type: u32
+help: Maximum ibgp multipaths
+syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 255; "Must be between (1-255)"
+val_help: u32:1-255; IBGP multipaths
diff --git a/templates/protocols/bgp/node.tag/maximum-paths/node.def b/templates/protocols/bgp/node.tag/maximum-paths/node.def
new file mode 100644
index 00000000..17c33530
--- /dev/null
+++ b/templates/protocols/bgp/node.tag/maximum-paths/node.def
@@ -0,0 +1 @@
+help: BGP multipaths