summaryrefslogtreecommitdiff
path: root/interface-definitions/include/ospf/ospf-authentication.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-authentication.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-authentication.xml.i')
-rw-r--r--interface-definitions/include/ospf/ospf-authentication.xml.i56
1 files changed, 56 insertions, 0 deletions
diff --git a/interface-definitions/include/ospf/ospf-authentication.xml.i b/interface-definitions/include/ospf/ospf-authentication.xml.i
new file mode 100644
index 000000000..5ade318de
--- /dev/null
+++ b/interface-definitions/include/ospf/ospf-authentication.xml.i
@@ -0,0 +1,56 @@
+<!-- included start from ospf/ospf-authentication.xml.i -->
+<node name="authentication">
+ <properties>
+ <help>Authentication</help>
+ </properties>
+ <children>
+ <node name="md5">
+ <properties>
+ <help>MD5 key id</help>
+ </properties>
+ <children>
+ <tagNode name="key-id">
+ <properties>
+ <help>MD5 key id</help>
+ <valueHelp>
+ <format>u32:1-255</format>
+ <description>MD5 key id</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-255"/>
+ </constraint>
+ </properties>
+ <children>
+ <leafNode name="md5-key">
+ <properties>
+ <help>MD5 authentication type</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>MD5 Key (16 characters or less)</description>
+ </valueHelp>
+ <constraint>
+ <regex>^[^[:space:]]{1,16}$</regex>
+ </constraint>
+ <constraintErrorMessage>Password must be 16 characters or less</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ </children>
+ </tagNode>
+ </children>
+ </node>
+ <leafNode name="plaintext-password">
+ <properties>
+ <help>Plain text password</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Plain text password (8 characters or less)</description>
+ </valueHelp>
+ <constraint>
+ <regex>^[^[:space:]]{1,8}$</regex>
+ </constraint>
+ <constraintErrorMessage>Password must be 8 characters or less</constraintErrorMessage>
+ </properties>
+ </leafNode>
+ </children>
+</node>
+<!-- included end -->