summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-11-22 11:24:28 -0800
committerStephen Hemminger <shemminger@vyatta.com>2011-11-22 11:24:28 -0800
commit5ae60e9ecc79699967d1c0216229639a9d405b79 (patch)
tree3f4c62b698c607a0e9e579b9f59d39f0c9816c5f /scripts
parent69936056e06e4be70364c47c2e108f1e00148bb2 (diff)
parent46794ad676f8f1ca301201bb65980192d10959d9 (diff)
downloadvyatta-cfg-system-5ae60e9ecc79699967d1c0216229639a9d405b79.tar.gz
vyatta-cfg-system-5ae60e9ecc79699967d1c0216229639a9d405b79.zip
Merge branch 'oxnard' of fiji.vyatta.com:/git/vyatta-cfg-system into oxnard
Diffstat (limited to 'scripts')
-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");