From d7e0e1579b84215eee801e0e033c0b60eb09a1c8 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 22 Aug 2008 09:41:27 -0700 Subject: fix for bug 3620. exclusion option is now provided and will create an accept rule. For an exclusion the user does not need to configure interfaces for that rule to balance across. --- src/lbdatafactory.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lbdatafactory.cc') diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc index 85f3283..5e3da83 100644 --- a/src/lbdatafactory.cc +++ b/src/lbdatafactory.cc @@ -140,6 +140,9 @@ LBDataFactory::process(const vector &path, int depth, const string &key, else if (depth > 0 && path[1] == "protocol") { process_rule_protocol(l_key,l_value); } + else if (depth > 0 && path[1] == "exclude") { + process_rule_exclude(l_key,l_value); + } else { process_rule(l_key,l_value); } @@ -265,6 +268,12 @@ LBDataFactory::process_rule_protocol(const string &key, const string &value) } } +void +LBDataFactory::process_rule_exclude(const string &key, const string &value) +{ + _rule_iter->second._exclude = true; +} + void LBDataFactory::process_rule_source(const string &key, const string &value) { -- cgit v1.2.3