summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-03-30 10:19:13 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-03-30 10:19:13 -0700
commit55b9460ce87f78a6dd0e3df470589fe2e815dc86 (patch)
treea64b7cb5edebd6d0d68a6afaab0c268f21fcf6d9 /scripts
parentd8e5bc6ac1ea68718e405bf376310e3cf4d8711a (diff)
downloadvyatta-wanloadbalance-55b9460ce87f78a6dd0e3df470589fe2e815dc86.tar.gz
vyatta-wanloadbalance-55b9460ce87f78a6dd0e3df470589fe2e815dc86.zip
fix for bug 5504. needed to correctly set nesting on internal configuration file for wlb.conf for the hook parameter.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl
index 43e537d..f6e8809 100644
--- a/scripts/vyatta-wanloadbalance.pl
+++ b/scripts/vyatta-wanloadbalance.pl
@@ -37,13 +37,14 @@ sub write_health {
print FILE_LCK "flush-conntrack\n";
}
- print FILE_LCK "health {\n";
my $hook = $config->returnValue("load-balancing wan hook");
if (defined $hook) {
- print FILE_LCK "\thook \"" . $hook . "\"\n";
+ print FILE_LCK "hook \"" . $hook . "\"\n";
}
+ print FILE_LCK "health {\n";
+
$config->setLevel("load-balancing wan interface-health");
my @eths = $config->listNodes();
foreach my $ethNode (@eths) {