summaryrefslogtreecommitdiff
path: root/src/lboutput.cc
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-07-21 11:50:09 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-07-21 11:50:09 -0700
commitf947ef5883cd890a2cdc3e250f6790f3a630492f (patch)
treeceb0582cfb652bbef942f3a63661a3a60f9adb9a /src/lboutput.cc
parent25d9851b65fed9297caaa01b47ec6bae76d8c954 (diff)
downloadvyatta-wanloadbalance-f947ef5883cd890a2cdc3e250f6790f3a630492f.tar.gz
vyatta-wanloadbalance-f947ef5883cd890a2cdc3e250f6790f3a630492f.zip
added udp ttl limited test type to health check. modified configuration layout. modified op mode command to
provide indication on multiple target success/failures.
Diffstat (limited to 'src/lboutput.cc')
-rw-r--r--src/lboutput.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lboutput.cc b/src/lboutput.cc
index 3ad37e1..10283d6 100644
--- a/src/lboutput.cc
+++ b/src/lboutput.cc
@@ -79,7 +79,15 @@ LBOutput::write(const LBData &lbdata)
}
}
- line += space + string("Target: Ping ") + target + "\n";
+ if (titer->second->_state == LBTest::K_NONE) {
+ line += space + string("*Target: ") + target + "\n";
+ }
+ else if (titer->second->_state == LBTest::K_FAILURE) {
+ line += space + string("-Target: ") + target + "\n";
+ }
+ else if (titer->second->_state == LBTest::K_SUCCESS) {
+ line += space + string("+Target: ") + target + "\n";
+ }
++titer;
}