diff options
author | Chandra S Vejendla <csvejend@us.ibm.com> | 2016-08-16 10:14:21 -0700 |
---|---|---|
committer | Gurucharan Shetty <guru@ovn.org> | 2016-08-16 10:29:28 -0700 |
commit | 8439c2ebd823023347c71b10d305bd4efc50d7c2 (patch) | |
tree | 2dae9ec69bde3a5904d71b65e31a48de87c45753 /ovn/ovn-nb.xml | |
parent | 4702159817c7d6c7f5714361c392a656646a4f8a (diff) | |
download | openvswitch-8439c2ebd823023347c71b10d305bd4efc50d7c2.tar.gz |
ovn: Support for GARP for NAT IPs via localnet
In cases where a DNAT IP is moved to a new router or the SNAT IP is reused
with a new mac address, the NAT IPs become unreachable because the external
switches/routers have stale ARP entries. This commit
aims to fix the problem by sending GARPs for NAT IPs via locanet. There are
two parts to this patch.
[1] Adding the datapath of the l3 gateway port to local datapaths in
ovn-controller. This will result in creation of patch ports between
br-int and the physical bridge (that provides connectivity to local network
via localnet port) and will enable gateway router to have external
connectivity
[2] A new options key "nat-addresses" is added to the logical switch port of
type router, the logical switch that has this port is the one that provides
connectivity to local network via localnet port. The value for the key
"nat-addresses" is the MAC address of the port followed by a list of
SNAT & DNAT IPs. When ovn-controller sees a new IP in nat-addrress option,
it sends a GARP message for the IP via the localnet port. nat-addresses
option is added to the logical switch port of type router and not to the
logical router port, because the logical switch datapath has the localnet
port. Adding nat-addresses option to the router port will involve more
changes to get to the local net port.
Signed-off-by: Chandra Sekhar Vejendla <csvejend@us.ibm.com>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Diffstat (limited to 'ovn/ovn-nb.xml')
-rw-r--r-- | ovn/ovn-nb.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ovn/ovn-nb.xml b/ovn/ovn-nb.xml index 8fb524492..5719e7476 100644 --- a/ovn/ovn-nb.xml +++ b/ovn/ovn-nb.xml @@ -225,6 +225,16 @@ table="Logical_Router_Port"/> to which this logical switch port is connected. </column> + + <column name="options" key="nat-addresses"> + MAC address of the <code>router-port</code> followed by a list of + SNAT and DNAT IP addresses. This is used to send gratuitous ARPs for + SNAT and DNAT IP addresses via <code>localnet</code> and is valid for + only L3 gateway ports. Example: <code>80:fa:5b:06:72:b7 158.36.44.22 + 158.36.44.24</code>. This would result in generation of gratuitous + ARPs for IP addresses 158.36.44.22 and 158.36.44.24 with a MAC + address of 80:fa:5b:06:72:b7. + </column> </group> <group title="Options for localnet ports"> |