summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf/ospf-interface-common.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-interface-common.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-interface-common.xml.i')
-rw-r--r--interface-definitions/include/ospf/ospf-interface-common.xml.i39
1 files changed, 39 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf/ospf-interface-common.xml.i b/interface-definitions/include/ospf/ospf-interface-common.xml.i
new file mode 100644
index 000000000..a34795cd5
--- /dev/null
+++ b/interface-definitions/include/ospf/ospf-interface-common.xml.i
@@ -0,0 +1,39 @@
+<!-- included start from ospf/ospf-interface-common.xml.i -->
+<leafNode name="bfd">
+ <properties>
+ <help>Enable Bidirectional Forwarding Detection (BFD) support</help>
+ <valueless/>
+ </properties>
+</leafNode>
+<leafNode name="cost">
+ <properties>
+ <help>Interface cost</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>OSPF interface cost</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+</leafNode>
+<leafNode name="mtu-ignore">
+ <properties>
+ <help>Disable Maximum Transmission Unit (MTU) mismatch detection</help>
+ <valueless/>
+ </properties>
+</leafNode>
+<leafNode name="priority">
+ <properties>
+ <help>Router priority (default: 1)</help>
+ <valueHelp>
+ <format>u32:0-255</format>
+ <description>OSPF router priority cost</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 0-255"/>
+ </constraint>
+ </properties>
+ <defaultValue>1</defaultValue>
+</leafNode>
+<!-- included end -->