diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-07-17 15:06:04 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-17 15:06:04 -0700 |
commit | 25d9851b65fed9297caaa01b47ec6bae76d8c954 (patch) | |
tree | f408dedd6fddd8cc156002f56f0618b5b0efa261 /src/lbdatafactory.hh | |
parent | c1e5c748aac314a2f0652393fbb9f8c079055106 (diff) | |
download | vyatta-wanloadbalance-25d9851b65fed9297caaa01b47ec6bae76d8c954.tar.gz vyatta-wanloadbalance-25d9851b65fed9297caaa01b47ec6bae76d8c954.zip |
reworked target code to support multiple targets and different target types.
user can now specify a sequence of targets to test (ordered by rule number). The first success satifies the success
criteria for the test and no further tests will be performed on the interface for this period.
Additional test types can be coded and added to the target framework.
configuration has changed as a result of the rework.
Diffstat (limited to 'src/lbdatafactory.hh')
-rw-r--r-- | src/lbdatafactory.hh | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/lbdatafactory.hh b/src/lbdatafactory.hh index 12648e8..74b2df6 100644 --- a/src/lbdatafactory.hh +++ b/src/lbdatafactory.hh @@ -50,12 +50,27 @@ private: process_health(const string &key, const string &value); void - process_health_hook(const string &key, const string &value); + process_hook(const string &key, const string &value); void process_health_interface(const string &key, const string &value); void + process_health_interface_rule(const string &key, const string &value); + + void + process_health_interface_rule_type(const string &key, const string &value); + + void + process_health_interface_rule_type_target(const string &key, const string &value); + + void + process_health_interface_rule_type_resptime(const string &key, const string &value); + + void + process_health_interface_rule_type_ttl(const string &key, const string &value); + + void process_rule(const string &key, const string &value); void @@ -88,10 +103,12 @@ private: LBRule _lb_rule; LBData _lb_data; int _interface_index; + int _current_test_rule_number; LBData::LBRuleIter _rule_iter; LBData::InterfaceHealthIter _health_iter; LBRule::InterfaceDistIter _rule_iface_iter; + LBHealth::TestIter _test_iter; }; #endif //__LBDATALOADER_HH__ |