diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-06-04 20:23:37 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-06-04 20:24:37 +0200 |
commit | c7f0ea5d37da2c7e555e6f0aae1390c84a682c0e (patch) | |
tree | 6dfd3c02e4f8398309342a642039558f1e8b45dc /templates/service/snmp/node.def | |
parent | fba795a09ae9d088a2403b5eaf2bc13e72138a62 (diff) | |
download | vyatta-cfg-system-c7f0ea5d37da2c7e555e6f0aae1390c84a682c0e.tar.gz vyatta-cfg-system-c7f0ea5d37da2c7e555e6f0aae1390c84a682c0e.zip |
T652: Rewrite service snmp in new style XML interface definition
Perl scripts will be removed when op mode commands are implemented.
Diffstat (limited to 'templates/service/snmp/node.def')
-rw-r--r-- | templates/service/snmp/node.def | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/templates/service/snmp/node.def b/templates/service/snmp/node.def deleted file mode 100644 index 7c8c372b..00000000 --- a/templates/service/snmp/node.def +++ /dev/null @@ -1,27 +0,0 @@ -priority: 980 -help: Simple Network Management Protocol (SNMP) -commit:expression: $VAR(community/) != "" || $VAR(community6/) != "" || $VAR(v3/) != "" \ - ; "must configure a community or community6 or v3" - -create: if [ ! -d "/config/snmp" ]; then sudo mkdir /config/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; - sudo rm -f /etc/snmp/snmpd.conf; - else - if [ -n "$VAR(v3/)" ]; then - sudo /opt/vyatta/sbin/vyatta-snmp-v3.pl --check-config; - if [ $? != 0 ]; then - exit 1; - fi - fi - sudo /opt/vyatta/sbin/vyatta-snmp.pl --update-snmp; - if [ -n "$VAR(v3/)" ] - then - sudo /opt/vyatta/sbin/vyatta-snmp-v3.pl --update-snmp; - else - sudo systemctl start snmpd.service > /dev/null 2>&1; - fi - fi |