diff options
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/dhcp-server.xml.in | 12 | ||||
-rw-r--r-- | interface-definitions/include/dhcp-domain-name.xml.i | 11 |
2 files changed, 14 insertions, 9 deletions
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in index 5db46a0c4..e629d96ab 100644 --- a/interface-definitions/dhcp-server.xml.in +++ b/interface-definitions/dhcp-server.xml.in @@ -53,6 +53,8 @@ <valueless/> </properties> </leafNode> + #include <include/dhcp-domain-name.xml.i> + #include <include/name-server-ipv4.xml.i> #include <include/generic-description.xml.i> #include <include/generic-disable-node.xml.i> <leafNode name="shared-network-parameters"> @@ -114,15 +116,7 @@ </properties> </leafNode> #include <include/name-server-ipv4.xml.i> - <leafNode name="domain-name"> - <properties> - <help>Client Domain Name</help> - <constraint> - <validator name="fqdn"/> - </constraint> - <constraintErrorMessage>Invalid domain name (RFC 1123 section 2).\nMay only contain letters, numbers and .-_</constraintErrorMessage> - </properties> - </leafNode> + #include <include/dhcp-domain-name.xml.i> #include <include/dhcp-server-domain-search.xml.i> <leafNode name="exclude"> <properties> diff --git a/interface-definitions/include/dhcp-domain-name.xml.i b/interface-definitions/include/dhcp-domain-name.xml.i new file mode 100644 index 000000000..eb95596da --- /dev/null +++ b/interface-definitions/include/dhcp-domain-name.xml.i @@ -0,0 +1,11 @@ +<!-- include start from dhcp-domain-name.xml.i --> +<leafNode name="domain-name"> + <properties> + <help>Client Domain Name</help> + <constraint> + <validator name="fqdn"/> + </constraint> + <constraintErrorMessage>Invalid domain name (RFC 1123 section 2).\nMay only contain letters, numbers and .-_</constraintErrorMessage> + </properties> +</leafNode> +<!-- include end --> |