summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-11-21 08:18:41 -0800
committerJohn Southworth <john.southworth@vyatta.com>2011-11-21 08:19:34 -0800
commiteafc0aa7922fc15cd02215cf6c855a343676566f (patch)
tree13e9c8f5bad449b59a040a2ce8dc832d5cec0cd8
parent6e848919f7ffa0608b20cc0a2069826336fd05b7 (diff)
downloadvyatta-cfg-quagga-eafc0aa7922fc15cd02215cf6c855a343676566f.tar.gz
vyatta-cfg-quagga-eafc0aa7922fc15cd02215cf6c855a343676566f.zip
Fix dyndns failure caused by commit: 5d27f2ef302dc600ea737e9af4151041aa11a2e0
-rwxr-xr-xscripts/dynamic-dns/vyatta-dynamic-dns.pl8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
index 290b0543..69592593 100755
--- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl
+++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
@@ -107,11 +107,9 @@ sub dynamicdns_get_values {
my @services = $config->listNodes("service");
foreach my $service (@services) {
$config->setLevel("service dns dynamic interface $interface service $service");
- switch ($service) {
- case "dslreports" {$service="dslreports1";}
- case "dyndns" {$service="dyndns2";}
- case "zoneedit" {$service="zoneedit1";}
- }
+ $service="dslreports1" if ($service eq "dslreports");
+ $service="dyndns2" if ($service eq "dyndns");
+ $service="zoneedit1" if ($service eq "zoneedit");
my $login = $config->returnValue("login");
my $password = $config->returnValue("password");
my @hostnames = $config->returnValues("host-name");