diff options
| author | slioch <slioch@eng-140.vyatta.com> | 2009-07-08 11:14:08 -0700 |
|---|---|---|
| committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-08 11:20:51 -0700 |
| commit | e04a3602d2be984a8ec71bf8b69d9b56665d1333 (patch) | |
| tree | fd7ec7847f8ec754dd9a72ce268eb74bd7a61625 /src/lbpathtest.cc | |
| parent | 8fd0204c883ca175c754d96b83433f084a7cc2ee (diff) | |
| download | vyatta-wanloadbalance-e04a3602d2be984a8ec71bf8b69d9b56665d1333.tar.gz vyatta-wanloadbalance-e04a3602d2be984a8ec71bf8b69d9b56665d1333.zip | |
fix for bug 4699. Note that dhcp nexthop detection was also broken due to changes in the location of the dhcp client information. this was also
fixed.
Diffstat (limited to 'src/lbpathtest.cc')
| -rw-r--r-- | src/lbpathtest.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lbpathtest.cc b/src/lbpathtest.cc index ebe55cd..d7ed6cd 100644 --- a/src/lbpathtest.cc +++ b/src/lbpathtest.cc @@ -103,9 +103,18 @@ LBPathTest::start(LBData &lb_data) while (iter != lb_data._iface_health_coll.end()) { string target = iter->second._ping_target; if (target.empty()) { - target = iter->second._nexthop; + if (iter->second._nexthop == "dhcp") { + target = iter->second._dhcp_nexthop; + } + else { + target = iter->second._nexthop; + } } + //don't have target yet... + if (target.empty()) { + return; + } if (_debug) { cout << "LBPathTest::start(): sending ping test for: " << iter->first << " for " << target << endl; } |
