summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-dynamic.xml.in
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-12-13 16:32:32 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-12-26 15:22:55 -0600
commitac8295ba27448eb19936f171c2c63ea7a85ab405 (patch)
treec65f7e741dc447d377afcb66d76f9b0576656457 /interface-definitions/dns-dynamic.xml.in
parent5f727571d315e3a482b25d0563acbef9b6965397 (diff)
downloadvyos-1x-ac8295ba27448eb19936f171c2c63ea7a85ab405.tar.gz
vyos-1x-ac8295ba27448eb19936f171c2c63ea7a85ab405.zip
ddclient: T5791: Enforce alphanumeric constraint on service name
Enforce constraint on Dynamic DNS service name to be alphanumeric (including hyphens and underscores).
Diffstat (limited to 'interface-definitions/dns-dynamic.xml.in')
-rw-r--r--interface-definitions/dns-dynamic.xml.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/interface-definitions/dns-dynamic.xml.in b/interface-definitions/dns-dynamic.xml.in
index f089f0e52..388e7c5d2 100644
--- a/interface-definitions/dns-dynamic.xml.in
+++ b/interface-definitions/dns-dynamic.xml.in
@@ -19,6 +19,10 @@
<format>txt</format>
<description>Dynamic DNS service name</description>
</valueHelp>
+ <constraint>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.i>
+ </constraint>
+ <constraintErrorMessage>Dynamic DNS service name must be alphanumeric and can contain hyphens and underscores</constraintErrorMessage>
</properties>
<children>
#include <include/generic-description.xml.i>