diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:59:02 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-31 07:59:02 -0800 |
commit | 622bbf801bd435a3848c669ff2c0e9090cd2bb4e (patch) | |
tree | 328d04410e8fed64e6a8b25abdf58f199d916c2d /templates/protocols/snmp/node.def | |
parent | c2c002021eab0adff7e4d268535170658a1b0c6c (diff) | |
download | vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.tar.gz vyatta-cfg-system-622bbf801bd435a3848c669ff2c0e9090cd2bb4e.zip |
convert templates to new syntax
Diffstat (limited to 'templates/protocols/snmp/node.def')
-rw-r--r-- | templates/protocols/snmp/node.def | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/protocols/snmp/node.def b/templates/protocols/snmp/node.def index b140f7f6..62adc534 100644 --- a/templates/protocols/snmp/node.def +++ b/templates/protocols/snmp/node.def @@ -1,10 +1,10 @@ -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 \ +help: Configure 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; \ + rm /tmp/snmp.$PPID; \ else \ sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; \ fi; " |