summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf-metric.xml.i
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-01-21 10:21:02 +0000
committersever-sever <v.gletenko@vyos.io>2021-01-21 10:21:02 +0000
commit95f61e54f1c9595a2a9bf65da12316f69cf2ea32 (patch)
tree18161ac295ddb0376bca0ff94923a6e5fb73651c /interface-definitions/include/ospf-metric.xml.i
parent12a6cca544f985e86b9d7c9626cc35622fcfb95b (diff)
downloadvyos-1x-95f61e54f1c9595a2a9bf65da12316f69cf2ea32.tar.gz
vyos-1x-95f61e54f1c9595a2a9bf65da12316f69cf2ea32.zip
ospf: T3236: Add XML for new format ospf conf-mode
Diffstat (limited to 'interface-definitions/include/ospf-metric.xml.i')
-rw-r--r--interface-definitions/include/ospf-metric.xml.i33
1 files changed, 33 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf-metric.xml.i b/interface-definitions/include/ospf-metric.xml.i
new file mode 100644
index 000000000..771fda02d
--- /dev/null
+++ b/interface-definitions/include/ospf-metric.xml.i
@@ -0,0 +1,33 @@
+<!-- included start from ospf-metric.xml.i -->
+<leafNode name="metric">
+ <properties>
+ <help>OSPF default metric</help>
+ <valueHelp>
+ <format>u32:0-16777214</format>
+ <description>Default metric</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-16777214"/>
+ </constraint>
+ </properties>
+</leafNode>
+<leafNode name="metric-type">
+ <properties>
+ <help>OSPF metric type for default routes</help>
+ <valueHelp>
+ <format>u32:1-2</format>
+ <description>Metric type for default routes (default 2)</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-2"/>
+ </constraint>
+ </properties>
+</leafNode>
+<leafNode name="route-map">
+ <properties>
+ <help>Route map reference</help>
+ <completionHelp>
+ <path>policy route-map</path>
+ </completionHelp>
+ </properties>
+</leafNode>