summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-domain-name.xml.in
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-05-16 20:54:44 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-05-16 23:18:25 -0500
commit97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424 (patch)
treec4197371534c7064e3785b093c691be0abeba14e /interface-definitions/dns-domain-name.xml.in
parent96d846d27ac818ee9a23bb7194bb58cfb7093387 (diff)
downloadvyos-1x-97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424.tar.gz
vyos-1x-97f8933e7bf8bbc14f3176e0b86adb3e1d7cc424.zip
T5226: Make host-name constraints to consistent everywhere
Make host-name constraints consistent across all definitions
Diffstat (limited to 'interface-definitions/dns-domain-name.xml.in')
-rw-r--r--interface-definitions/dns-domain-name.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/dns-domain-name.xml.in b/interface-definitions/dns-domain-name.xml.in
index 9eb1a208f..ef34ecbf5 100644
--- a/interface-definitions/dns-domain-name.xml.in
+++ b/interface-definitions/dns-domain-name.xml.in
@@ -73,9 +73,9 @@
<properties>
<help>Host name for static address mapping</help>
<constraint>
- <regex>[A-Za-z0-9][-.A-Za-z0-9]*[A-Za-z0-9]</regex>
+ #include <include/constraint/host-name.xml.i>
</constraint>
- <constraintErrorMessage>invalid hostname</constraintErrorMessage>
+ <constraintErrorMessage>Host-name must be alphanumeric and can contain hyphens</constraintErrorMessage>
</properties>
<children>
<leafNode name="alias">