summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf/ospf-metric.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-11 19:28:06 +0100
committerChristian Poessinger <christian@poessinger.com>2021-03-13 21:54:50 +0100
commit952c52ef012504f17f09234ab1f7608ceb4002b1 (patch)
tree9c643ee4f6a7b452d3133d32341f9ae29aa5ef0d /interface-definitions/include/ospf/ospf-metric.xml.i
parent894a5d6daee5f785834a2f360d66eb9b8e112465 (diff)
downloadvyos-1x-952c52ef012504f17f09234ab1f7608ceb4002b1.tar.gz
vyos-1x-952c52ef012504f17f09234ab1f7608ceb4002b1.zip
vrf: ospf: T2271: re-arrange xml include building blocks
In order to fully re-use the XML based OSPF CLI definition for per-VRF routing, the file structure needs to be reorganized and the common OSPF definition is moved to its dedicated ospf-common-config.xml.i file, which can then be fully re-included at the VRF level. As the amount of include files now has reached a certain amount, this also introduces "per topic" subdirectories on the filesystem to keep a clean structure.
Diffstat (limited to 'interface-definitions/include/ospf/ospf-metric.xml.i')
-rw-r--r--interface-definitions/include/ospf/ospf-metric.xml.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf/ospf-metric.xml.i b/interface-definitions/include/ospf/ospf-metric.xml.i
new file mode 100644
index 000000000..8d06bb159
--- /dev/null
+++ b/interface-definitions/include/ospf/ospf-metric.xml.i
@@ -0,0 +1,14 @@
+<!-- included start from ospf/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>
+<!-- included end -->