summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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