From 55b9460ce87f78a6dd0e3df470589fe2e815dc86 Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Tue, 30 Mar 2010 10:19:13 -0700 Subject: fix for bug 5504. needed to correctly set nesting on internal configuration file for wlb.conf for the hook parameter. --- scripts/vyatta-wanloadbalance.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') 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) { -- cgit v1.2.3