summaryrefslogtreecommitdiff
path: root/templates/service/snmp/v3/user/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/snmp/v3/user/node.def')
-rw-r--r--templates/service/snmp/v3/user/node.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/service/snmp/v3/user/node.def b/templates/service/snmp/v3/user/node.def
index e6a8bc87..32e0f61f 100644
--- a/templates/service/snmp/v3/user/node.def
+++ b/templates/service/snmp/v3/user/node.def
@@ -1,6 +1,7 @@
tag:
type: txt
help: Specifies the user with name username
-syntax:expression: pattern $VAR(@) "^[^-]*$" ; "characters '-' in name is not supported yet"
+syntax:expression: pattern $VAR(@) "^[^\(\)\|\&-]+$" ; "illegal characters in name"
+syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_snmp_name.pl $VAR(@)"
commit:expression: $VAR(auth/) != "" || $VAR(tsm-key/) != ""; "must specify auth or tsm-key"
-commit:expression: $VAR(mode/) != ""; "must specify mode" \ No newline at end of file
+commit:expression: $VAR(mode/) != ""; "must specify mode"