summaryrefslogtreecommitdiff
path: root/templates/service/snmp/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-05-12 18:38:48 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-05-12 18:40:54 -0700
commitab587ce0c92b5aeeb26eb678946a7e1faa6f9db1 (patch)
tree93a9ef4f52ffc332c3a76e842c614a03d389fc03 /templates/service/snmp/node.def
parent8f2edd81ecdbfa74beff7f54deac1d83dab82416 (diff)
downloadvyatta-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/node.def')
-rw-r--r--templates/service/snmp/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/service/snmp/node.def b/templates/service/snmp/node.def
index 13b39fa7..2952eb34 100644
--- a/templates/service/snmp/node.def
+++ b/templates/service/snmp/node.def
@@ -1,6 +1,7 @@
priority: 980
help: Configure Simple Network Management Protocol (SNMP)
-commit:expression: $VAR(community/) != ""; "must configure a community"
+commit:expression: $VAR(community/) != "" || $VAR(community6/) != "" \
+ ; "must configure a community or community6"
delete: touch /tmp/snmp.$PPID
end:if [ -f "/tmp/snmp.$PPID" ]