summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-11-10 19:37:46 +0100
committerChristian Poessinger <christian@poessinger.com>2021-11-10 19:39:03 +0100
commitac682795b7d69f11076ddf022c3452e411a0fdc5 (patch)
treeae26810d58b496ecae6da61c0ce18193358c1681 /interface-definitions
parentc4fb141f115f2fa8ce0463585c0aeaaa22a4251a (diff)
downloadvyos-1x-ac682795b7d69f11076ddf022c3452e411a0fdc5.tar.gz
vyos-1x-ac682795b7d69f11076ddf022c3452e411a0fdc5.zip
dhcp-server: T3982: remove support for invalid characters . and +
(cherry picked from commit c45e4beadf30accb1838b3bad1f21c2146469bf8)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/dhcp-server.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/dhcp-server.xml.in b/interface-definitions/dhcp-server.xml.in
index 47bdc4db1..45a629181 100644
--- a/interface-definitions/dhcp-server.xml.in
+++ b/interface-definitions/dhcp-server.xml.in
@@ -289,9 +289,9 @@
<properties>
<help>Name of static mapping</help>
<constraint>
- <regex>[-_a-zA-Z0-9.]+</regex>
+ <regex>^[-_a-zA-Z0-9]+$</regex>
</constraint>
- <constraintErrorMessage>Invalid static mapping name. May only contain letters, numbers and .-_</constraintErrorMessage>
+ <constraintErrorMessage>Invalid static mapping name. May only contain letters, numbers and a hyphen (-)!</constraintErrorMessage>
</properties>
<children>
#include <include/generic-disable-node.xml.i>