summaryrefslogtreecommitdiff
path: root/interface-definitions/system-syslog.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-05 22:52:06 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-05 22:52:06 +0200
commit2c8647350a771a8e28db03ec82cda20b58db7323 (patch)
treeedfec8adb73192f876be333660e73de1dd4cdadc /interface-definitions/system-syslog.xml.in
parent11e25707683138d4a5a64a3717160edb84816182 (diff)
downloadvyos-1x-2c8647350a771a8e28db03ec82cda20b58db7323.tar.gz
vyos-1x-2c8647350a771a8e28db03ec82cda20b58db7323.zip
syslog: T2769: xml: provide common constraint for system usernames
Diffstat (limited to 'interface-definitions/system-syslog.xml.in')
-rw-r--r--interface-definitions/system-syslog.xml.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/interface-definitions/system-syslog.xml.in b/interface-definitions/system-syslog.xml.in
index 90c3de5c1..fbba9ae9e 100644
--- a/interface-definitions/system-syslog.xml.in
+++ b/interface-definitions/system-syslog.xml.in
@@ -11,14 +11,14 @@
<tagNode name="user">
<properties>
<help>Logging to specific terminal of given user</help>
- <constraint>
- <regex>[a-z_][a-z0-9_-]{1,31}[$]?</regex>
- </constraint>
- <constraintErrorMessage>illegal characters in user</constraintErrorMessage>
<valueHelp>
- <format>username</format>
+ <format>txt</format>
<description>user login name</description>
</valueHelp>
+ <constraint>
+ #include <include/constraint/login-username.xml.i>
+ </constraint>
+ <constraintErrorMessage>illegal characters in user</constraintErrorMessage>
</properties>
<children>
<tagNode name="facility">