summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/snmp/node.def1
1 files changed, 1 insertions, 0 deletions
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 \