summaryrefslogtreecommitdiff
path: root/interface-definitions/include/username.xml.i
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-05-19 17:06:19 +0300
committerGitHub <noreply@github.com>2022-05-19 17:06:19 +0300
commitd458ded452d90910ad670623534dd3f017603a6b (patch)
tree092dd591edfa7e2b69f92a024200ad237d039dfc /interface-definitions/include/username.xml.i
parent2353f164fc1f61002c9da4fd852854ee1355b8cd (diff)
parent749c69b1c8fce968ea9bbf9dec5e2a18ab4a2c6d (diff)
downloadvyos-1x-d458ded452d90910ad670623534dd3f017603a6b.tar.gz
vyos-1x-d458ded452d90910ad670623534dd3f017603a6b.zip
Merge pull request #1315 from sever-sever/T4315-equ
monitoring: T4315: Add telegraf output plugin prometheus-client
Diffstat (limited to 'interface-definitions/include/username.xml.i')
-rw-r--r--interface-definitions/include/username.xml.i11
1 files changed, 11 insertions, 0 deletions
diff --git a/interface-definitions/include/username.xml.i b/interface-definitions/include/username.xml.i
new file mode 100644
index 000000000..2263ec08d
--- /dev/null
+++ b/interface-definitions/include/username.xml.i
@@ -0,0 +1,11 @@
+<!-- include start from username.xml.i -->
+<leafNode name="username">
+ <properties>
+ <help>Authentication username</help>
+ <constraint>
+ <regex>^[-_a-zA-Z0-9.]{1,100}</regex>
+ </constraint>
+ <constraintErrorMessage>Illegal characters or more than 100 characters</constraintErrorMessage>
+ </properties>
+</leafNode>
+<!-- include end -->