[ovs-git] [openvswitch/ovs] 8439c2: ovn: Support for GARP for NAT IPs via localnet

GitHub noreply at github.com
Tue Aug 16 17:29:42 UTC 2016

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 8439c2ebd823023347c71b10d305bd4efc50d7c2
  Author: Chandra S Vejendla <csvejend at us.ibm.com>
  Date:   2016-08-16 (Tue, 16 Aug 2016)

  Changed paths:
    M ovn/controller/binding.c
    M ovn/controller/ovn-controller.8.xml
    M ovn/controller/patch.c
    M ovn/controller/physical.c
    M ovn/controller/pinctrl.c
    M ovn/lib/ovn-util.c
    M ovn/lib/ovn-util.h
    M ovn/northd/ovn-northd.c
    M ovn/ovn-nb.xml
    M ovn/ovn-sb.xml
    M tests/ovn.at

  Log Message:
  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

[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 at us.ibm.com>
Acked-by: Ryan Moats <rmoats at us.ibm.com>
Signed-off-by: Gurucharan Shetty <guru at ovn.org>

More information about the git mailing list