diff options
author | Christian Breunig <christian@breunig.cc> | 2023-02-04 15:56:26 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-02-04 15:56:26 +0100 |
commit | 977400d71e81d5d49a9dcd955264b611942fbae1 (patch) | |
tree | 3f93a93c9ecf706e995445ac8eb0109e06a3f3b4 | |
parent | 04addbaf7204844691e6ae5c82fa3fd311b6911e (diff) | |
download | vyos-1x-977400d71e81d5d49a9dcd955264b611942fbae1.tar.gz vyos-1x-977400d71e81d5d49a9dcd955264b611942fbae1.zip |
qos: xml: T4284: policy-name is alpha-numeric only
-rw-r--r-- | interface-definitions/qos.xml.in | 12 |
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> |