summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-22 20:35:41 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-12-22 20:58:24 -0800
commit74c54634138de586246c1b51ddf63f3b1dc4e911 (patch)
treeea10161a7050bcbb5101380c9272e7122de6f132 /templates
parentcfe4666d06e98af3cfdbf17d348ae3a6b3fb5cf1 (diff)
downloadvyatta-cfg-quagga-74c54634138de586246c1b51ddf63f3b1dc4e911.tar.gz
vyatta-cfg-quagga-74c54634138de586246c1b51ddf63f3b1dc4e911.zip
Update snmp template
1. Use non-expression syntax 2. Remove unused init action
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/snmp/node.def16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def
index ad81892c..7b0fff19 100644
--- a/templates/protocols/snmp/node.def
+++ b/templates/protocols/snmp/node.def
@@ -1,11 +1,11 @@
priority: 980
help: Configure Simple Network Management Protocol (SNMP)
commit:expression: $VAR(community/) != ""; "must configure a community"
-create:expression: "/opt/vyatta/sbin/vyatta-snmp.pl --init-snmp"
-delete:expression: "touch /tmp/snmp.$PPID"
-end:expression: "if [ -f \"/tmp/snmp.$PPID\" ]; then \
- sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp \
- rm /tmp/snmp.$PPID; \
- else \
- sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \
- fi; "
+
+delete: touch /tmp/snmp.$PPID
+end:if [ -f "/tmp/snmp.$PPID" ]
+ then sudo /opt/vyatta/sbin/vyatta-snmp.pl --stop-snmp
+ rm /tmp/snmp.$PPID
+ else
+ sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp
+ fi