summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEwald van Geffen <ewald@abcdef.be>2016-05-22 01:02:07 +0200
committerEwald van Geffen <ewald@abcdef.be>2016-05-22 01:02:07 +0200
commiteec6443e2dbfed079b295a5d60fd08cf80aad698 (patch)
tree4e2b3fefe33b084ca816f55e544210a14c771a72 /scripts
parenta85fc2d5ed4e9412c47446645c6e2c7aedb9e92e (diff)
downloadvyatta-wanloadbalance-eec6443e2dbfed079b295a5d60fd08cf80aad698.tar.gz
vyatta-wanloadbalance-eec6443e2dbfed079b295a5d60fd08cf80aad698.zip
- Bug 363 support for post-hook: allows to run script once route/firewall change have been applied.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl5
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) {