diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-06-17 15:07:06 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-06-17 15:12:25 -0700 |
commit | 0d5777b96fec7e16dbcf2a96b285dc0ed493a34c (patch) | |
tree | 4cd560ba337a09ca72d1c978239bf910ea601bb1 /scripts | |
parent | 02c414300e38d2c354bc74353328f7b456be2e24 (diff) | |
download | vyatta-wanloadbalance-0d5777b96fec7e16dbcf2a96b285dc0ed493a34c.tar.gz vyatta-wanloadbalance-0d5777b96fec7e16dbcf2a96b285dc0ed493a34c.zip |
ping target is now optional. nexthop will be used in place of ping target if ping target is not specified. this is also true of dhcp configurations.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/vyatta-wanloadbalance.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-wanloadbalance.pl b/scripts/vyatta-wanloadbalance.pl index edc9232..38ed5b5 100644 --- a/scripts/vyatta-wanloadbalance.pl +++ b/scripts/vyatta-wanloadbalance.pl @@ -54,7 +54,6 @@ sub write_health { $option = $config->returnValue("$ethNode ping"); if (defined $option) { print FILE_LCK "\t\ttarget " . $option . "\n"; - $valid = "true"; } $option = $config->returnValue("$ethNode resp-time"); @@ -70,6 +69,7 @@ sub write_health { $option = $config->returnValue("$ethNode nexthop"); if (defined $option) { print FILE_LCK "\t\tnexthop " . $option . "\n"; + $valid = "true"; } else { print "nexthop must be specified\n"; @@ -80,7 +80,7 @@ sub write_health { print FILE_LCK "}\n\n"; if ($valid eq "false") { - print "A valid WAN load-balance configuration requires an interface with a ping target\n"; + print "A valid WAN load-balance configuration requires an interface with a nexthop\n"; } return $valid; } |