diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 5 |
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) { |
