summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-04 15:56:26 +0100
committerChristian Breunig <christian@breunig.cc>2023-02-04 15:56:26 +0100
commit977400d71e81d5d49a9dcd955264b611942fbae1 (patch)
tree3f93a93c9ecf706e995445ac8eb0109e06a3f3b4
parent04addbaf7204844691e6ae5c82fa3fd311b6911e (diff)
downloadvyos-1x-977400d71e81d5d49a9dcd955264b611942fbae1.tar.gz
vyos-1x-977400d71e81d5d49a9dcd955264b611942fbae1.zip
qos: xml: T4284: policy-name is alpha-numeric only
-rw-r--r--interface-definitions/qos.xml.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/interface-definitions/qos.xml.in b/interface-definitions/qos.xml.in
index 8809369ff..757c1f856 100644
--- a/interface-definitions/qos.xml.in
+++ b/interface-definitions/qos.xml.in
@@ -29,8 +29,12 @@
</completionHelp>
<valueHelp>
<format>txt</format>
- <description>QoS Policy name</description>
+ <description>QoS policy to use</description>
</valueHelp>
+ <constraint>
+ <regex>[[:alnum:]][-_[:alnum:]]*</regex>
+ </constraint>
+ <constraintErrorMessage>Only alpha-numeric policy name allowed</constraintErrorMessage>
</properties>
</leafNode>
<leafNode name="egress">
@@ -51,8 +55,12 @@
</completionHelp>
<valueHelp>
<format>txt</format>
- <description>QoS Policy name</description>
+ <description>QoS policy to use</description>
</valueHelp>
+ <constraint>
+ <regex>[[:alnum:]][-_[:alnum:]]*</regex>
+ </constraint>
+ <constraintErrorMessage>Only alpha-numeric policy name allowed</constraintErrorMessage>
</properties>
</leafNode>
</children>