summaryrefslogtreecommitdiff
path: root/interface-definitions/include/username.xml.i
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-05-05 16:12:23 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-05-09 08:46:16 +0000
commit749c69b1c8fce968ea9bbf9dec5e2a18ab4a2c6d (patch)
treed3526f99a128b6c5749e98174a57fb085bd93fbd /interface-definitions/include/username.xml.i
parent2c29a3b3b46c7570f4a509f413b208348c0ce647 (diff)
downloadvyos-1x-749c69b1c8fce968ea9bbf9dec5e2a18ab4a2c6d.tar.gz
vyos-1x-749c69b1c8fce968ea9bbf9dec5e2a18ab4a2c6d.zip
monitoring: T4315: Add telegraf output plugin prometheus-client
Add output Plugin "prometheus-client" for telegraf set service monitoring telegraf prometheus-client xxx
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 -->