summaryrefslogtreecommitdiff
path: root/interface-definitions/include/dhcp-interface.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-14 21:40:52 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-17 07:28:50 +0200
commited361a8254073505c1183bc884aa2bcb6ff0b76c (patch)
treeebdc477094470f42e5d6e0fa84c2e2e8c952a04f /interface-definitions/include/dhcp-interface.xml.i
parentb04c4e21a07126d40702123e1122cd200883ccda (diff)
downloadvyos-1x-ed361a8254073505c1183bc884aa2bcb6ff0b76c.tar.gz
vyos-1x-ed361a8254073505c1183bc884aa2bcb6ff0b76c.zip
xml: provide common "dhcp-interface" include block
Diffstat (limited to 'interface-definitions/include/dhcp-interface.xml.i')
-rw-r--r--interface-definitions/include/dhcp-interface.xml.i15
1 files changed, 15 insertions, 0 deletions
diff --git a/interface-definitions/include/dhcp-interface.xml.i b/interface-definitions/include/dhcp-interface.xml.i
new file mode 100644
index 000000000..939b45f15
--- /dev/null
+++ b/interface-definitions/include/dhcp-interface.xml.i
@@ -0,0 +1,15 @@
+ <leafNode name="dhcp-interface">
+ <properties>
+ <help>DHCP interface supplying next-hop IP address</help>
+ <completionHelp>
+ <script>${vyos_completion_dir}/list_interfaces.py</script>
+ </completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>DHCP interface name</description>
+ </valueHelp>
+ <constraint>
+ <validator name="interface-name"/>
+ </constraint>
+ </properties>
+ </leafNode>