]> git.proxmox.com Git - ovs.git/commit
ovn-northd: Force SNAT for multiple gateway routers.
authorGurucharan Shetty <guru@ovn.org>
Fri, 4 Nov 2016 11:49:18 +0000 (04:49 -0700)
committerGurucharan Shetty <guru@ovn.org>
Tue, 29 Nov 2016 18:59:02 +0000 (10:59 -0800)
commit65d8810c5521a18399b726f5e62ab35b8b063614
tree843f87b621613f502dfb2ad0b0b2bfc4b1487f62
parent50da3c736c7b97e1ef07bf57da67da92f5f81312
ovn-northd: Force SNAT for multiple gateway routers.

When multiple gateway routers exist, a packet can
enter any gateway router. Once the packet reaches its
destination, its reverse direction should be via the
same gateway router.  This is achieved by doing a SNAT
of the packet in the inward direction (towards logical space)
with a IP address of the gateway router such that packet travels back
to the same gateway router.

To do the above, we introduce two new options in the logical router.

options:dnat_force_snat_ip=$IP will force SNAT any packet to $IP if
it has been previously DNATted.

options:lb_force_snat_ip=$IP will force SNAT any packet to $IP if
it has been previously load-balanced.

Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Mickey Spiegel <mickeys.dev@gmail.com>
ovn/lib/logical-fields.c
ovn/lib/logical-fields.h
ovn/northd/ovn-northd.8.xml
ovn/northd/ovn-northd.c
ovn/ovn-nb.xml
tests/system-ovn.at