diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-13 16:32:32 -0600 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-26 15:22:55 -0600 |
commit | ac8295ba27448eb19936f171c2c63ea7a85ab405 (patch) | |
tree | c65f7e741dc447d377afcb66d76f9b0576656457 /interface-definitions | |
parent | 5f727571d315e3a482b25d0563acbef9b6965397 (diff) | |
download | vyos-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')
-rw-r--r-- | interface-definitions/dns-dynamic.xml.in | 4 |
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> |