summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-06-06 19:09:48 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-06-06 20:48:54 -0500
commit3402e94db4a9420a5a4e8a97ce6875a2c834348e (patch)
treeac4b903eae5a1a0c967e94905d12cfe26a521d0f /interface-definitions
parent4d029a3d0b23a8b11ffd18da9cb4e9c543e70d06 (diff)
downloadvyos-1x-3402e94db4a9420a5a4e8a97ce6875a2c834348e.tar.gz
vyos-1x-3402e94db4a9420a5a4e8a97ce6875a2c834348e.zip
mdns: T5227: Add meaningful constraint message
Add meaningful constraint message for service name format
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/service-mdns-repeater.xml.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface-definitions/service-mdns-repeater.xml.in b/interface-definitions/service-mdns-repeater.xml.in
index 4aab9a558..653dbbbe4 100644
--- a/interface-definitions/service-mdns-repeater.xml.in
+++ b/interface-definitions/service-mdns-repeater.xml.in
@@ -38,6 +38,7 @@
<constraint>
<regex>[-_.a-zA-Z0-9]+</regex>
</constraint>
+ <constraintErrorMessage>Service name must be alphanumeric and can contain hyphens and underscores</constraintErrorMessage>
<multi/>
</properties>
</leafNode>