summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf-metric-type.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-22 17:38:22 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-23 11:03:03 +0100
commit4ed4d822cfd1d1aad19982783066a5e2431889b4 (patch)
treeff838b1c170d656048d6b4ab5932dbe59024b0b2 /interface-definitions/include/ospf-metric-type.xml.i
parent93c0416efc685424a0750fe9cb9728d5e6450073 (diff)
downloadvyos-1x-4ed4d822cfd1d1aad19982783066a5e2431889b4.tar.gz
vyos-1x-4ed4d822cfd1d1aad19982783066a5e2431889b4.zip
ospf: T3236: provide full protocol support in XML and Python
This commit provides the implementation of the OSPF CLI with a Jinja2 template that is loaded by FRR reload. It also contains some initial smoketests. There is yet no verify() implementation!
Diffstat (limited to 'interface-definitions/include/ospf-metric-type.xml.i')
-rw-r--r--interface-definitions/include/ospf-metric-type.xml.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf-metric-type.xml.i b/interface-definitions/include/ospf-metric-type.xml.i
new file mode 100644
index 000000000..50f11960c
--- /dev/null
+++ b/interface-definitions/include/ospf-metric-type.xml.i
@@ -0,0 +1,15 @@
+<!-- included start from ospf-metric-type.xml.i -->
+<leafNode name="metric-type">
+ <properties>
+ <help>OSPF metric type for default routes (default: 2)</help>
+ <valueHelp>
+ <format>u32:1-2</format>
+ <description>Metric type for default routes</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-2"/>
+ </constraint>
+ </properties>
+ <defaultValue>2</defaultValue>
+</leafNode>
+<!-- included end -->