summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-01-19 18:06:01 +0100
committerGitHub <noreply@github.com>2022-01-19 18:06:01 +0100
commit258dd07904bee68e5445848c106a8bacbd7d2977 (patch)
tree72343f1c2db597a5dac3bb4107b3a2aa782197b4
parentc77369761f9cb8bec1d026b0e5586a402f4c7285 (diff)
parentc31f085b5d87847320a239580f1fe3f1478541c0 (diff)
downloadvyos-1x-258dd07904bee68e5445848c106a8bacbd7d2977.tar.gz
vyos-1x-258dd07904bee68e5445848c106a8bacbd7d2977.zip
Merge pull request #1179 from fett0/T4195
OSPF : T4195: ability to set maximum paths for OSPF
-rw-r--r--data/templates/frr/ospfd.frr.tmpl3
-rw-r--r--interface-definitions/include/ospf/protocol-common-config.xml.i12
2 files changed, 15 insertions, 0 deletions
diff --git a/data/templates/frr/ospfd.frr.tmpl b/data/templates/frr/ospfd.frr.tmpl
index af66baf53..a6618b6af 100644
--- a/data/templates/frr/ospfd.frr.tmpl
+++ b/data/templates/frr/ospfd.frr.tmpl
@@ -126,6 +126,9 @@ router ospf {{ 'vrf ' + vrf if vrf is defined and vrf is not none }}
{% if default_metric is defined and default_metric is not none %}
default-metric {{ default_metric }}
{% endif %}
+{% if maximum_paths is defined and maximum_paths is not none %}
+ maximum-paths {{ maximum_paths }}
+{% endif %}
{% if distance is defined and distance is not none %}
{% if distance.global is defined and distance.global is not none %}
distance {{ distance.global }}
diff --git a/interface-definitions/include/ospf/protocol-common-config.xml.i b/interface-definitions/include/ospf/protocol-common-config.xml.i
index 688e78034..e783f4bec 100644
--- a/interface-definitions/include/ospf/protocol-common-config.xml.i
+++ b/interface-definitions/include/ospf/protocol-common-config.xml.i
@@ -289,6 +289,18 @@
</constraint>
</properties>
</leafNode>
+<leafNode name="maximum-paths">
+ <properties>
+ <help>Maximum multiple paths (ECMP)</help>
+ <valueHelp>
+ <format>u32:1-64</format>
+ <description>Maximum multiple paths (ECMP)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-64"/>
+ </constraint>
+ </properties>
+</leafNode>
<node name="distance">
<properties>
<help>Administrative distance</help>