From c5e6a28f5697e9448dbb343f5023709cbc2d3c8b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 5 Jan 2010 15:34:56 -0800 Subject: Change 'protocols snmp' to 'service snmp' Bug 212 The entries in config under protocols were all routing protocols except SNMP which was an unfortunate original design choice. Config script does migration. --- scripts/snmp/vyatta-snmp.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/snmp/vyatta-snmp.pl') diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl index b4257d03..80276043 100644 --- a/scripts/snmp/vyatta-snmp.pl +++ b/scripts/snmp/vyatta-snmp.pl @@ -104,7 +104,7 @@ sub randhex { sub snmp_get_values { my $config = new Vyatta::Config; - $config->setLevel("protocols snmp community"); + $config->setLevel("service snmp community"); my @communities = $config->listNodes(); foreach my $community (@communities) { @@ -141,7 +141,7 @@ sub snmp_get_values { } } - $config->setLevel("protocols snmp"); + $config->setLevel("service snmp"); my $contact = $config->returnValue("contact"); if (defined $contact) { print "syscontact \"$contact\" \n"; -- cgit v1.2.3