summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2019-06-16 17:07:16 +0200
committerChristian Poessinger <christian@poessinger.com>2019-06-16 22:54:54 +0200
commitf875731a710eb7fadefd5a73d65e53915477dce8 (patch)
treead4358c41017c33eef8b844e04969bfbc53a01ed
parentb04a9791226f7953cfa740804ec0d43745605f49 (diff)
downloadvyos-1x-f875731a710eb7fadefd5a73d65e53915477dce8.tar.gz
vyos-1x-f875731a710eb7fadefd5a73d65e53915477dce8.zip
dhcpv6-server: Add name constraint, clarify help, fix typos
-rw-r--r--interface-definitions/dhcpv6-server.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/interface-definitions/dhcpv6-server.xml b/interface-definitions/dhcpv6-server.xml
index e63eb2242..bf049cf7a 100644
--- a/interface-definitions/dhcpv6-server.xml
+++ b/interface-definitions/dhcpv6-server.xml
@@ -268,7 +268,7 @@
</leafNode>
<leafNode name="sntp-server">
<properties>
- <help>IPv6 address of an SNTP Server for client to use</help>
+ <help>IPv6 address of an SNTP server for client to use</help>
<constraint>
<validator name="ipv6-address"/>
</constraint>
@@ -278,25 +278,29 @@
<tagNode name="static-mapping">
<properties>
<help>Name of static mapping</help>
+ <constraint>
+ <regex>^[-_a-zA-Z0-9.]+$</regex>
+ </constraint>
+ <constraintErrorMessage>Invalid static-mapping name</constraintErrorMessage>
</properties>
<children>
<leafNode name="disable">
<properties>
- <help>Option to disable static-mapping</help>
+ <help>Option to disable static mapping</help>
<valueless/>
</properties>
</leafNode>
<leafNode name="identifier">
<properties>
- <help>Client identifier for this static mapping</help>
+ <help>Client identifier (DUID) for this static mapping [REQUIRED]</help>
</properties>
</leafNode>
<leafNode name="ipv6-address">
<properties>
- <help>Client IPv5 address for this static mapping</help>
+ <help>Client IPv6 address for this static mapping [REQUIRED]</help>
<valueHelp>
<format>ipv6</format>
- <description>IPv6 address for this tatic mapping</description>
+ <description>IPv6 address for this static mapping [REQUIRED]</description>
</valueHelp>
<constraint>
<validator name="ipv6-address"/>