summaryrefslogtreecommitdiff
path: root/interface-definitions/include/generic-description.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2023-01-07 09:07:10 +0100
committerChristian Poessinger <christian@poessinger.com>2023-01-07 09:07:40 +0100
commit662bae181cdff07a2472d7121d18ae37d380e062 (patch)
tree52936e037b652fb76562a41c20d6089a614f7065 /interface-definitions/include/generic-description.xml.i
parentecb94d82311a415d44728ecef39da895feceb5e2 (diff)
downloadvyos-1x-662bae181cdff07a2472d7121d18ae37d380e062.tar.gz
vyos-1x-662bae181cdff07a2472d7121d18ae37d380e062.zip
xml: T1579: merge generic-description.xml.i and interface/description.xml.i
No need to have two distinct include blocks as one superseeds the other. Also this makes the entire behavior of "description" CLI node simpler.
Diffstat (limited to 'interface-definitions/include/generic-description.xml.i')
-rw-r--r--interface-definitions/include/generic-description.xml.i3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-definitions/include/generic-description.xml.i b/interface-definitions/include/generic-description.xml.i
index b54897be4..b030c2495 100644
--- a/interface-definitions/include/generic-description.xml.i
+++ b/interface-definitions/include/generic-description.xml.i
@@ -7,8 +7,9 @@
<description>Description</description>
</valueHelp>
<constraint>
- <regex>[a-zA-Z0-9_\-\s]+</regex>
+ <regex>[[:ascii:]]{1,256}</regex>
</constraint>
+ <constraintErrorMessage>Description too long (limit 256 characters)</constraintErrorMessage>
</properties>
</leafNode>
<!-- include end -->