summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-08 19:38:11 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-08 19:38:11 +0100
commitab6ef466c128ba48f85b13ba8d4be1476e844726 (patch)
treef55c9e16ae09d7f4088906d1b6c876493ac690c1 /interface-definitions
parent87bbe75152e3e0625776587c1fd4cd7104319fe1 (diff)
downloadvyos-1x-ab6ef466c128ba48f85b13ba8d4be1476e844726.tar.gz
vyos-1x-ab6ef466c128ba48f85b13ba8d4be1476e844726.zip
bgp: T3391: migrate old IPv4 only maximum-paths config to new syntax
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/bgp-afi-maximum-paths.xml.i51
-rw-r--r--interface-definitions/protocols-bgp.xml.in31
2 files changed, 29 insertions, 53 deletions
diff --git a/interface-definitions/include/bgp-afi-maximum-paths.xml.i b/interface-definitions/include/bgp-afi-maximum-paths.xml.i
index 5ee0d13a3..62133c375 100644
--- a/interface-definitions/include/bgp-afi-maximum-paths.xml.i
+++ b/interface-definitions/include/bgp-afi-maximum-paths.xml.i
@@ -1,26 +1,33 @@
<!-- included start from bgp-afi-maximum-paths.xml.i -->
-<leafNode name="maximum-paths">
+<node name="maximum-paths">
<properties>
- <help>Forward packets over multiple paths (eBGP)</help>
- <valueHelp>
- <format>u32:1-256</format>
- <description>Number of paths to consider</description>
- </valueHelp>
- <constraint>
- <validator name="numeric" argument="--range 1-256"/>
- </constraint>
+ <help>Forward packets over multiple paths</help>
</properties>
-</leafNode>
-<leafNode name="maximum-paths-ibgp">
- <properties>
- <help>Forward packets over multiple paths (iBGP)</help>
- <valueHelp>
- <format>u32:1-256</format>
- <description>Number of paths to consider</description>
- </valueHelp>
- <constraint>
- <validator name="numeric" argument="--range 1-256"/>
- </constraint>
- </properties>
-</leafNode>
+ <children>
+ <leafNode name="ebgp">
+ <properties>
+ <help>eBGP maximum paths</help>
+ <valueHelp>
+ <format>u32:1-256</format>
+ <description>Number of paths to consider</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-256"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="ibgp">
+ <properties>
+ <help>iBGP maximum paths</help>
+ <valueHelp>
+ <format>u32:1-256</format>
+ <description>Number of paths to consider</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-256"/>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+</node>
<!-- included end -->
diff --git a/interface-definitions/protocols-bgp.xml.in b/interface-definitions/protocols-bgp.xml.in
index c2a123313..96a0b1315 100644
--- a/interface-definitions/protocols-bgp.xml.in
+++ b/interface-definitions/protocols-bgp.xml.in
@@ -350,37 +350,6 @@
</node>
</children>
</node>
- <node name="maximum-paths">
- <properties>
- <help>BGP multipaths</help>
- </properties>
- <children>
- <leafNode name="ebgp">
- <properties>
- <help>Maximum ebgp multipaths</help>
- <valueHelp>
- <format>u32:1-255</format>
- <description>EBGP multipaths</description>
- </valueHelp>
- <constraint>
- <validator name="numeric" argument="--range 1-255"/>
- </constraint>
- </properties>
- </leafNode>
- <leafNode name="ibgp">
- <properties>
- <help>Maximum ibgp multipaths</help>
- <valueHelp>
- <format>u32:1-255</format>
- <description>EBGP multipaths</description>
- </valueHelp>
- <constraint>
- <validator name="numeric" argument="--range 1-255"/>
- </constraint>
- </properties>
- </leafNode>
- </children>
- </node>
<node name="listen">
<properties>
<help>Listen for and accept BGP dynamic neighbors from range</help>