From 4cfc0d334a8bba6850728cb21fb53ddee061983f Mon Sep 17 00:00:00 2001 From: Ewald van Geffen Date: Sat, 16 Aug 2014 03:02:15 +0200 Subject: Vyatta Bugfix 6245: Sticky incoming connection support for WLB Signed-off-by: Daniil Baturin --- src/lbdatafactory.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lbdatafactory.cc') diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc index 653e270..9729e62 100644 --- a/src/lbdatafactory.cc +++ b/src/lbdatafactory.cc @@ -146,6 +146,11 @@ LBDataFactory::process(const vector &path, int depth, const string &key, else if (path[0] == "enable-local-traffic") { process_enablelocaltraffic(l_key,l_value); } + else if (path[0] == "sticky-connections") { + if (l_value == "inbound") { + process_stickyinboundconnections(l_key,l_value); + } + } else if (path[0] == "flush-conntrack") { process_flushconntrack(l_key,l_value); } @@ -224,6 +229,12 @@ LBDataFactory::process_enablelocaltraffic(const string &key, const string &value _lb_data._enable_local_traffic = true; } +void +LBDataFactory::process_stickyinboundconnections(const string &key, const string &value) +{ + _lb_data._sticky_inbound_connections = true; +} + void LBDataFactory::process_flushconntrack(const string &key, const string &value) { -- cgit v1.2.3