diff options
author | James Davidson <james.davidson@vyatta.com> | 2013-05-16 09:29:53 -0700 |
---|---|---|
committer | James Davidson <james.davidson@vyatta.com> | 2013-05-16 10:17:43 -0700 |
commit | 55f3c16fbdcad6616495cc02205999ae0307ffeb (patch) | |
tree | cb4d6d6f50076b3bf67c82a79b966e21a040ae15 /templates | |
parent | 2ce614b5b76309c2257e8d11bea929278c96f428 (diff) | |
download | vyatta-cfg-system-55f3c16fbdcad6616495cc02205999ae0307ffeb.tar.gz vyatta-cfg-system-55f3c16fbdcad6616495cc02205999ae0307ffeb.zip |
SNMP sync up
Minor fixes. Refactoring.
Add seclevel property to SNMPv3 group.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/service/snmp/v3/group/node.def | 1 | ||||
-rw-r--r-- | templates/service/snmp/v3/group/node.tag/seclevel/node.def | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/service/snmp/v3/group/node.def b/templates/service/snmp/v3/group/node.def index 13579174..95d0413c 100644 --- a/templates/service/snmp/v3/group/node.def +++ b/templates/service/snmp/v3/group/node.def @@ -5,3 +5,4 @@ syntax:expression: pattern $VAR(@) "^[^\(\)\|\&-]+$" ; "illegal characters in na syntax:expression: exec "/opt/vyatta/sbin/vyatta_check_snmp_name.pl $VAR(@)" commit:expression: $VAR(view/) != "" ; "must specify view" commit:expression: $VAR(mode/) != "" ; "must specify mode" +commit:expression: $VAR(seclevel/) != "" ; "must specify security level" diff --git a/templates/service/snmp/v3/group/node.tag/seclevel/node.def b/templates/service/snmp/v3/group/node.tag/seclevel/node.def new file mode 100644 index 00000000..2b0aa67b --- /dev/null +++ b/templates/service/snmp/v3/group/node.tag/seclevel/node.def @@ -0,0 +1,7 @@ +type: txt +help: Defines security level +syntax:expression: $VAR(@) in "auth", "priv" +allowed: echo auth priv + +val_help: priv; +val_help: auth; |