summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-05 15:34:56 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-05 15:34:56 -0800
commitc5e6a28f5697e9448dbb343f5023709cbc2d3c8b (patch)
tree05d387c41900933fb729b7a6cfd0d0c98bfb92ea
parentfa603975fdbbc7726dbb923e6cb2fc0649c28a98 (diff)
downloadvyatta-cfg-system-c5e6a28f5697e9448dbb343f5023709cbc2d3c8b.tar.gz
vyatta-cfg-system-c5e6a28f5697e9448dbb343f5023709cbc2d3c8b.zip
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.
-rw-r--r--cfg-version/system@3 (renamed from cfg-version/system@2)0
-rw-r--r--scripts/snmp/vyatta-snmp.pl4
-rw-r--r--templates/service/snmp/community/node.def (renamed from templates/protocols/snmp/community/node.def)0
-rw-r--r--templates/service/snmp/community/node.tag/authorization/node.def (renamed from templates/protocols/snmp/community/node.tag/authorization/node.def)0
-rw-r--r--templates/service/snmp/community/node.tag/client/node.def (renamed from templates/protocols/snmp/community/node.tag/client/node.def)0
-rw-r--r--templates/service/snmp/community/node.tag/network/node.def (renamed from templates/protocols/snmp/community/node.tag/network/node.def)0
-rw-r--r--templates/service/snmp/contact/node.def (renamed from templates/protocols/snmp/contact/node.def)0
-rw-r--r--templates/service/snmp/description/node.def (renamed from templates/protocols/snmp/description/node.def)0
-rw-r--r--templates/service/snmp/location/node.def (renamed from templates/protocols/snmp/location/node.def)0
-rw-r--r--templates/service/snmp/node.def (renamed from templates/protocols/snmp/node.def)0
-rw-r--r--templates/service/snmp/trap-target/node.def (renamed from templates/protocols/snmp/trap-target/node.def)0
11 files changed, 2 insertions, 2 deletions
diff --git a/cfg-version/system@2 b/cfg-version/system@3
index e69de29b..e69de29b 100644
--- a/cfg-version/system@2
+++ b/cfg-version/system@3
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";
diff --git a/templates/protocols/snmp/community/node.def b/templates/service/snmp/community/node.def
index cf95bc27..cf95bc27 100644
--- a/templates/protocols/snmp/community/node.def
+++ b/templates/service/snmp/community/node.def
diff --git a/templates/protocols/snmp/community/node.tag/authorization/node.def b/templates/service/snmp/community/node.tag/authorization/node.def
index c8918d43..c8918d43 100644
--- a/templates/protocols/snmp/community/node.tag/authorization/node.def
+++ b/templates/service/snmp/community/node.tag/authorization/node.def
diff --git a/templates/protocols/snmp/community/node.tag/client/node.def b/templates/service/snmp/community/node.tag/client/node.def
index 828faa97..828faa97 100644
--- a/templates/protocols/snmp/community/node.tag/client/node.def
+++ b/templates/service/snmp/community/node.tag/client/node.def
diff --git a/templates/protocols/snmp/community/node.tag/network/node.def b/templates/service/snmp/community/node.tag/network/node.def
index 00a77d4b..00a77d4b 100644
--- a/templates/protocols/snmp/community/node.tag/network/node.def
+++ b/templates/service/snmp/community/node.tag/network/node.def
diff --git a/templates/protocols/snmp/contact/node.def b/templates/service/snmp/contact/node.def
index 4251291e..4251291e 100644
--- a/templates/protocols/snmp/contact/node.def
+++ b/templates/service/snmp/contact/node.def
diff --git a/templates/protocols/snmp/description/node.def b/templates/service/snmp/description/node.def
index 6324a96b..6324a96b 100644
--- a/templates/protocols/snmp/description/node.def
+++ b/templates/service/snmp/description/node.def
diff --git a/templates/protocols/snmp/location/node.def b/templates/service/snmp/location/node.def
index f4bcef7c..f4bcef7c 100644
--- a/templates/protocols/snmp/location/node.def
+++ b/templates/service/snmp/location/node.def
diff --git a/templates/protocols/snmp/node.def b/templates/service/snmp/node.def
index 6ce9c2c7..6ce9c2c7 100644
--- a/templates/protocols/snmp/node.def
+++ b/templates/service/snmp/node.def
diff --git a/templates/protocols/snmp/trap-target/node.def b/templates/service/snmp/trap-target/node.def
index c041d108..c041d108 100644
--- a/templates/protocols/snmp/trap-target/node.def
+++ b/templates/service/snmp/trap-target/node.def