diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-13 16:32:32 -0600 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-12-13 16:41:26 -0600 |
commit | b0beb1cb732cdf950917f1eb419f66cc4f007f29 (patch) | |
tree | 7c82f63fb1f43ec8d2eee89b2c8bd1619a603d81 /interface-definitions/dns-dynamic.xml.in | |
parent | 743ecd29fc3e848d2a41d3f252a931d9998c5f91 (diff) | |
download | vyos-1x-b0beb1cb732cdf950917f1eb419f66cc4f007f29.tar.gz vyos-1x-b0beb1cb732cdf950917f1eb419f66cc4f007f29.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.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> |