diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-05-12 18:38:48 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-05-12 18:40:54 -0700 |
commit | ab587ce0c92b5aeeb26eb678946a7e1faa6f9db1 (patch) | |
tree | 93a9ef4f52ffc332c3a76e842c614a03d389fc03 /templates/service/snmp/community6 | |
parent | 8f2edd81ecdbfa74beff7f54deac1d83dab82416 (diff) | |
download | vyatta-cfg-quagga-ab587ce0c92b5aeeb26eb678946a7e1faa6f9db1.tar.gz vyatta-cfg-quagga-ab587ce0c92b5aeeb26eb678946a7e1faa6f9db1.zip |
Better version of SNMP IPv6 support
Need to use different syntax for community values on IPv6
versus IPv4
Diffstat (limited to 'templates/service/snmp/community6')
4 files changed, 19 insertions, 0 deletions
diff --git a/templates/service/snmp/community6/node.def b/templates/service/snmp/community6/node.def new file mode 100644 index 00000000..32eb4800 --- /dev/null +++ b/templates/service/snmp/community6/node.def @@ -0,0 +1,5 @@ +tag: +type: txt +help: Set community name [REQUIRED] +syntax:expression: pattern $VAR(@) "^[^%]+$" ; \ + "Community string may not contain %" diff --git a/templates/service/snmp/community6/node.tag/authorization/node.def b/templates/service/snmp/community6/node.tag/authorization/node.def new file mode 100644 index 00000000..c8918d43 --- /dev/null +++ b/templates/service/snmp/community6/node.tag/authorization/node.def @@ -0,0 +1,7 @@ +type: txt +default: "ro" +help: Set authorization type (rw or ro) (default: ro) +syntax:expression: $VAR(@) in "ro", "rw"; "Authorization type must be either rw or ro" + + + diff --git a/templates/service/snmp/community6/node.tag/client/node.def b/templates/service/snmp/community6/node.tag/client/node.def new file mode 100644 index 00000000..fddbcb91 --- /dev/null +++ b/templates/service/snmp/community6/node.tag/client/node.def @@ -0,0 +1,3 @@ +multi: +type: ipv6 +help: Set IPv6 address of SNMP client allowed to contact system diff --git a/templates/service/snmp/community6/node.tag/network/node.def b/templates/service/snmp/community6/node.tag/network/node.def new file mode 100644 index 00000000..266a1bce --- /dev/null +++ b/templates/service/snmp/community6/node.tag/network/node.def @@ -0,0 +1,4 @@ +multi: +type: ipv6net +help: Set subnet of SNMP client(s) allowed to contact system +syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-prefix-boundry $VAR(@)" |