]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ovn.at
ovn-controller: Add support for load balancing.
authorGurucharan Shetty <guru@ovn.org>
Sun, 3 Jul 2016 12:31:37 +0000 (05:31 -0700)
committerGurucharan Shetty <guru@ovn.org>
Sun, 3 Jul 2016 22:52:51 +0000 (15:52 -0700)
commit467085fd7e316bb88cca83932f854e59fb01e9b5
treea8b97bbbf33a61948b1de59fa4fc9fd321f5c056
parent52c0fc3921489c13a4bab87e36cd37bbd747e41b
ovn-controller: Add support for load balancing.

ovn-controller now supports 2 new logical actions.

1. ct_lb;
Sends the packet through the conntrack zone to NAT
packets. Packets that are part of established connection
will automatically get NATed based on the NAT arguments
supplied to conntrack when the first packet was committed.

2. ct_lb(192.168.1.2, 192.168.1.3);
   ct_lb(192.168.1.2:80, 192.168.1.3:80);
Creates an OpenFlow group with multiple buckets and equal weights
that changes the destination IP address (and port number) of the packet
statefully to one of the options provided inside the parenthesis.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/controller/lflow.c
ovn/controller/lflow.h
ovn/controller/ofctrl.c
ovn/controller/ofctrl.h
ovn/controller/ovn-controller.c
ovn/lib/actions.c
ovn/lib/actions.h
ovn/ovn-sb.xml
tests/ovn.at
tests/test-ovn.c