From 0c0e1b04823e9faa479e4462c6eb958df0871b42 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 2 Nov 2007 14:36:04 -0700 Subject: Verify that a community has been defined before firing up snmpd. --- templates/protocols/snmp/node.def | 1 + 1 file changed, 1 insertion(+) (limited to 'templates') diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def index 4c35e2b0..b140f7f6 100644 --- a/templates/protocols/snmp/node.def +++ b/templates/protocols/snmp/node.def @@ -1,4 +1,5 @@ help: "Configure SNMP" +commit: $(community/) != ""; "must configure a community" create: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp" delete: "touch /tmp/snmp.\\$PPID" end: "if [ -f \"/tmp/snmp.\\$PPID\" ]; then \ -- cgit v1.2.3