summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vyatta-wanloadbalance.pl4
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;
}