summaryrefslogtreecommitdiff
path: root/interface-definitions/include/static-route-vrf.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-05 21:01:31 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-05 22:42:29 +0100
commit96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a (patch)
tree8d2ddfca0ce711059081a4ce9d65ef2f80449248 /interface-definitions/include/static-route-vrf.xml.i
parent44f6896311a559687458a4a6c4fadb86b0a91646 (diff)
downloadvyos-1x-96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a.tar.gz
vyos-1x-96d51fa69fbe072fe5c9e8efd4fa6a89d8a2771a.zip
xml: add new common "interface-name" validator
Diffstat (limited to 'interface-definitions/include/static-route-vrf.xml.i')
-rw-r--r--interface-definitions/include/static-route-vrf.xml.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/interface-definitions/include/static-route-vrf.xml.i b/interface-definitions/include/static-route-vrf.xml.i
new file mode 100644
index 000000000..70f8b0be8
--- /dev/null
+++ b/interface-definitions/include/static-route-vrf.xml.i
@@ -0,0 +1,19 @@
+<!-- included start from static-route-vrf.xml.i -->
+<leafNode name="vrf">
+ <properties>
+ <help>VRF to leak route</help>
+ <completionHelp>
+ <list>default</list>
+ <path>vrf name</path>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Name of VRF to leak to</description>
+ </valueHelp>
+ <constraint>
+ <regex>^(default)$</regex>
+ <validator name="vrf-name"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- included end -->