diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-04-02 09:33:15 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-04-02 09:33:15 -0700 |
commit | 3c28df532e783cb42d0f003da402783767308e6d (patch) | |
tree | a63b623e6d128db891b29ac873d6781f3232c371 /src/lbdatafactory.cc | |
parent | c9229987f30ddc568568ac743c037d1a2f62c7d0 (diff) | |
download | vyatta-wanloadbalance-3c28df532e783cb42d0f003da402783767308e6d.tar.gz vyatta-wanloadbalance-3c28df532e783cb42d0f003da402783767308e6d.zip |
added source based routing feature.
Diffstat (limited to 'src/lbdatafactory.cc')
-rw-r--r-- | src/lbdatafactory.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc index ebe63d0..17b4260 100644 --- a/src/lbdatafactory.cc +++ b/src/lbdatafactory.cc @@ -123,6 +123,9 @@ LBDataFactory::process(const vector<string> &path, int depth, const string &key, if (path[0] == "disable-source-nat") { process_disablesourcenat(l_key,l_value); } + else if (path[0] == "enable-source-based-routing") { + process_enablesourcebasedrouting(l_key,l_value); + } else if (path[0] == "flush-conntrack") { process_flushconntrack(l_key,l_value); } @@ -175,6 +178,13 @@ LBDataFactory::process_flushconntrack(const string &key, const string &value) } void +LBDataFactory::process_enablesourcebasedrouting(const string &key, const string &value) +{ + _lb_data._enable_source_based_routing = true; +} + + +void LBDataFactory::process_health(const string &key, const string &value) { if (value.empty() == false) { |