summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-07 16:34:39 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-07 16:40:04 +0100
commite0190f29581f8d8f07f42d5a6a0a88e439011da2 (patch)
treea3c09fa8f77f7a8eb4daa5b45e5855c5e7721b95 /interface-definitions/include
parent3afc29b5ec1ad26dcd7cf7b6ded821015192bf5d (diff)
downloadvyos-1x-e0190f29581f8d8f07f42d5a6a0a88e439011da2.tar.gz
vyos-1x-e0190f29581f8d8f07f42d5a6a0a88e439011da2.zip
policy: T2425: add generic-interface XML building block
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/generic-interface.xml.i17
1 files changed, 17 insertions, 0 deletions
diff --git a/interface-definitions/include/generic-interface.xml.i b/interface-definitions/include/generic-interface.xml.i
new file mode 100644
index 000000000..50af718a5
--- /dev/null
+++ b/interface-definitions/include/generic-interface.xml.i
@@ -0,0 +1,17 @@
+<!-- include start from generic-interface.xml.i -->
+<leafNode name="interface">
+ <properties>
+ <help>Interface Name to use</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Interface name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="interface-name"/>
+ </constraint>
+ </properties>
+</leafNode>
+<!-- include end -->