diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl index 9603c48..58f1cf3 100644 --- a/scripts/vyatta-wanloadbalance.pl +++ b/scripts/vyatta-wanloadbalance.pl @@ -49,6 +49,11 @@ sub write_health { print FILE_LCK "health {\n"; + my $post_hook = $config->returnValue("load-balancing wan post-hook"); + if (defined $post_hook) { + print FILE_LCK "post-hook \"" . $post_hook . "\"\n"; + } + $config->setLevel("load-balancing wan interface-health"); my @eths = $config->listNodes(); foreach my $ethNode (@eths) { |