summaryrefslogtreecommitdiff
path: root/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-03 22:25:43 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-06 20:58:56 +0100
commit939c7c16a5add4443aebc37a55c2a33e4fccb8d0 (patch)
tree22048cc7ba4b40beeeb9cc314cb6df5c932a4ab1 /interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i
parent0d4d4dd840e06c18250d73f27de61261ff141944 (diff)
downloadvyos-1x-939c7c16a5add4443aebc37a55c2a33e4fccb8d0.tar.gz
vyos-1x-939c7c16a5add4443aebc37a55c2a33e4fccb8d0.zip
T1843: use include files for IPv4/IPv6 interface address configuration
As 219779bc6151 ("T1843: run interface-definitions though GCC preprocessor") implemented the foundation of using the GCC preprocessor to make our XML definitions more lightweight this commit transforms the configuration of an IPv4/IPv6 address to this new style. It implementes it for the following interface types: * bond * bridge * dummy * ethernet * geneve * loopback * vxlan * wireguard * wireless
Diffstat (limited to 'interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i')
-rw-r--r--interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i29
1 files changed, 29 insertions, 0 deletions
diff --git a/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i b/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i
new file mode 100644
index 000000000..fb46f2c09
--- /dev/null
+++ b/interface-definitions/include/address-ipv4-ipv6-dhcp.xml.i
@@ -0,0 +1,29 @@
+<leafNode name="address">
+ <properties>
+ <help>IP address</help>
+ <completionHelp>
+ <list>dhcp dhcpv6</list>
+ </completionHelp>
+ <valueHelp>
+ <format>ipv4net</format>
+ <description>IPv4 address and prefix length</description>
+ </valueHelp>
+ <valueHelp>
+ <format>ipv6net</format>
+ <description>IPv6 address and prefix length</description>
+ </valueHelp>
+ <valueHelp>
+ <format>dhcp</format>
+ <description>Dynamic Host Configuration Protocol</description>
+ </valueHelp>
+ <valueHelp>
+ <format>dhcpv6</format>
+ <description>Dynamic Host Configuration Protocol for IPv6</description>
+ </valueHelp>
+ <constraint>
+ <validator name="ip-cidr"/>
+ <regex>(dhcp|dhcpv6)</regex>
+ </constraint>
+ <multi/>
+ </properties>
+</leafNode>