summaryrefslogtreecommitdiff
path: root/interface-definitions/include
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-09 06:48:55 +0000
committerChristian Breunig <christian@breunig.cc>2023-02-09 06:49:01 +0000
commite22e9c9210cb561fc6062ff5b1048e64cdc85c36 (patch)
treeb7f3d983a2cbd63879f4aed7130c35feb666007a /interface-definitions/include
parentf234b602c4b0554456c494451b438d32f3386d69 (diff)
downloadvyos-1x-e22e9c9210cb561fc6062ff5b1048e64cdc85c36.tar.gz
vyos-1x-e22e9c9210cb561fc6062ff5b1048e64cdc85c36.zip
wwan: T3622: add constraint for username/password CLI nodes
- Username is up to 128 alphanumerical characters, -, _, #, and @ - Password is limited to ASCII characters only, with a total lenght of 128
Diffstat (limited to 'interface-definitions/include')
-rw-r--r--interface-definitions/include/interface/authentication.xml.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/authentication.xml.i b/interface-definitions/include/interface/authentication.xml.i
index c097ca9dd..7d8352f2e 100644
--- a/interface-definitions/include/interface/authentication.xml.i
+++ b/interface-definitions/include/interface/authentication.xml.i
@@ -11,6 +11,10 @@
<format>txt</format>
<description>Username used for connection</description>
</valueHelp>
+ <constraint>
+ <regex>[[:alnum:]][-_#@[:alnum:]]{0,127}</regex>
+ </constraint>
+ <constraintErrorMessage>Username is limited to alphanumerical characters, -, _, #, and @ with a total lenght of 128</constraintErrorMessage>
</properties>
</leafNode>
<leafNode name="password">
@@ -20,6 +24,10 @@
<format>txt</format>
<description>Password used for connection</description>
</valueHelp>
+ <constraint>
+ <regex>[[:ascii:]]{1,128}</regex>
+ </constraint>
+ <constraintErrorMessage>Password is limited to ASCII characters only, with a total lenght of 128</constraintErrorMessage>
</properties>
</leafNode>
</children>