summaryrefslogtreecommitdiff
path: root/src/lbdatafactory.cc
diff options
context:
space:
mode:
authorMichael Larson <slioch@eng-140.vyatta.com>2008-06-06 18:02:00 -0700
committerMichael Larson <slioch@eng-140.vyatta.com>2008-06-06 18:02:00 -0700
commit46f998d055ee8247847b4043d30037973c6f5650 (patch)
tree73306b3e5fd496c56fbd774dee148d61ab48947f /src/lbdatafactory.cc
parent60a196fa007e776558d12610a231d3f274bd9bdc (diff)
downloadvyatta-wanloadbalance-46f998d055ee8247847b4043d30037973c6f5650.tar.gz
vyatta-wanloadbalance-46f998d055ee8247847b4043d30037973c6f5650.zip
added contract entry for state NEW for initial interface. Also add parameter to specify nexthop via interface in
interface-health. This will be mandatory, but currently it is optional in the absence of a migration script.
Diffstat (limited to 'src/lbdatafactory.cc')
-rw-r--r--src/lbdatafactory.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc
index 1cfcd34..877c78e 100644
--- a/src/lbdatafactory.cc
+++ b/src/lbdatafactory.cc
@@ -198,6 +198,9 @@ LBDataFactory::process_health_interface(const string &key, const string &value)
syslog(LOG_ERR, "wan_lb: illegal ping-resp specified in configuration file: %s", value.c_str());
}
}
+ else if (key == "nexthop") {
+ _health_iter->second._nexthop = value;
+ }
else if (key == "health") {
//nothing
}