diff options
| author | slioch <slioch@eng-140.vyatta.com> | 2009-07-21 11:50:09 -0700 |
|---|---|---|
| committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-21 11:50:09 -0700 |
| commit | f947ef5883cd890a2cdc3e250f6790f3a630492f (patch) | |
| tree | ceb0582cfb652bbef942f3a63661a3a60f9adb9a /src/lboutput.cc | |
| parent | 25d9851b65fed9297caaa01b47ec6bae76d8c954 (diff) | |
| download | vyatta-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.cc | 10 |
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; } |
