diff options
| author | Ewald van Geffen <ewald@abcdef.be> | 2016-05-22 01:02:07 +0200 |
|---|---|---|
| committer | Ewald van Geffen <ewald@abcdef.be> | 2016-05-22 01:02:07 +0200 |
| commit | eec6443e2dbfed079b295a5d60fd08cf80aad698 (patch) | |
| tree | 4e2b3fefe33b084ca816f55e544210a14c771a72 /scripts | |
| parent | a85fc2d5ed4e9412c47446645c6e2c7aedb9e92e (diff) | |
| download | vyatta-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.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) { |
