summaryrefslogtreecommitdiff
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 15:53:19 -0700
commit46f0fd285dca72de6357a686f0f361e08fc66525 (patch)
treec4386390a514b740e10784c08789189ef1410278
parent6b28f42cca1b520793ff95c9e47a50e9363754ef (diff)
downloadvyatta-wanloadbalance-46f0fd285dca72de6357a686f0f361e08fc66525.tar.gz
vyatta-wanloadbalance-46f0fd285dca72de6357a686f0f361e08fc66525.zip
fix for bug 5504. needed to correctly set nesting on internal configuration file for wlb.conf for the hook parameter.
-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) {