From eec6443e2dbfed079b295a5d60fd08cf80aad698 Mon Sep 17 00:00:00 2001 From: Ewald van Geffen Date: Sun, 22 May 2016 01:02:07 +0200 Subject: - Bug 363 support for post-hook: allows to run script once route/firewall change have been applied. --- scripts/vyatta-wanloadbalance.pl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') 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) { -- cgit v1.2.3