summaryrefslogtreecommitdiff
path: root/templates/service/snmp/v3/view/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/service/snmp/v3/view/node.def')
-rw-r--r--templates/service/snmp/v3/view/node.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/service/snmp/v3/view/node.def b/templates/service/snmp/v3/view/node.def
index a83c978b..1fa589ae 100644
--- a/templates/service/snmp/v3/view/node.def
+++ b/templates/service/snmp/v3/view/node.def
@@ -1,5 +1,6 @@
tag:
type: txt
help: Specifies the view with name viewname
-
-commit:expression: $VAR(oid/) != ""; "must configure an oid" \ No newline at end of file
+syntax:expression: pattern $VAR(@) "^[^\(\)\|\&-]+$" ; "illegal characters in name"
+syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_snmp_name.pl $VAR(@)"
+commit:expression: $VAR(oid/) != ""; "must configure an oid"