summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf/auto-cost.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-26 10:54:17 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-26 10:54:17 +0100
commit48cc27d9446abb4dfa5e78a42c591ac553e85d3e (patch)
treeb16570a231bc3a8f2fd126c20ad96858eb98c4f7 /interface-definitions/include/ospf/auto-cost.xml.i
parent604949b97cfff0fc91580d195739648f9bc12e50 (diff)
downloadvyos-1x-48cc27d9446abb4dfa5e78a42c591ac553e85d3e.tar.gz
vyos-1x-48cc27d9446abb4dfa5e78a42c591ac553e85d3e.zip
ospfv3: T4108: add support for auto-cost parameter
Diffstat (limited to 'interface-definitions/include/ospf/auto-cost.xml.i')
-rw-r--r--interface-definitions/include/ospf/auto-cost.xml.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf/auto-cost.xml.i b/interface-definitions/include/ospf/auto-cost.xml.i
new file mode 100644
index 000000000..3e6cc8232
--- /dev/null
+++ b/interface-definitions/include/ospf/auto-cost.xml.i
@@ -0,0 +1,22 @@
+<!-- include start from ospf/auto-cost.xml.i -->
+<node name="auto-cost">
+ <properties>
+ <help>Calculate interface cost according to bandwidth</help>
+ </properties>
+ <children>
+ <leafNode name="reference-bandwidth">
+ <properties>
+ <help>Reference bandwidth method to assign cost (default: 100)</help>
+ <valueHelp>
+ <format>u32:1-4294967</format>
+ <description>Reference bandwidth cost in Mbits/sec</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-4294967"/>
+ </constraint>
+ </properties>
+ <defaultValue>100</defaultValue>
+ </leafNode>
+ </children>
+</node>
+<!-- include end -->