So far, we have had the ability to add a load-balancer to a switch. This works fine for east-west traffic. It was assumed (and lightly tested) that it also works for north-south traffic by adding the load_balancer object to the lswitch connected to the local network.
But, in more extensive testing, it was observed that this does not work when we add a SNAT rule to the gateway router. That rule is in a different zone and will intercept traffic heading out the logical topology without any knowledge about the load balancer rule added in a different zone. This fix, lets us add the load_balancer to the gateway router too. It has the added benefit that it works fine with floating IPs for north-south traffic. i.e., floating ips can be load-balanced to logical ips. Gurucharan Shetty (2): ovn-controller: Datapath based conntrack zone for load-balancing. ovn-northd: Add load-balancers to gateway routers. include/ovn/actions.h | 3 + ovn/controller/lflow.c | 1 + ovn/lib/actions.c | 7 ++- ovn/northd/ovn-northd.8.xml | 63 +++++++++++++++---- ovn/northd/ovn-northd.c | 150 +++++++++++++++++++++++++++++++++++++++++--- ovn/ovn-nb.ovsschema | 9 ++- ovn/ovn-nb.xml | 5 ++ ovn/ovn-sb.xml | 6 +- tests/system-ovn.at | 144 ++++++++++++++++++++++++++++++++++++++++++ tests/test-ovn.c | 1 + 10 files changed, 361 insertions(+), 28 deletions(-) -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev