Bug 4331 - External bridge used for gateway mac resolver needs to be dynamic (cont.)
authorFlavio Fernandes <ffernand@redhat.com>
Mon, 11 Jan 2016 18:41:31 +0000 (13:41 -0500)
committerFlavio Fernandes <ffernand@redhat.com>
Mon, 11 Jan 2016 18:41:31 +0000 (13:41 -0500)
commit99b0bb086cd11f1bcb6e0fd2d3d1bd00fd0040e5
tree827140709349e6a600cbb00a2b92fdbd4b720108
parentf7b9b8798e378c4ccc6e6985a95606f1613f2148
Bug 4331 - External bridge used for gateway mac resolver needs to be dynamic (cont.)

This is an additional patchset for changes that shuffle list of dpids so that
different br-ex instances are used when mac resolver is not getting an answer.
The other part of this gerrit has been merged via:
https://git.opendaylight.org/gerrit/#/c/32284/

With this change the GatewayMacResolverService will become resilient to the cases
where nodes get deleted or lose br-ex connectivity after the resolver is kicked
off to periodically track a given ip address.

Also made some minor clean up in NeutronL3Adapter, so that it needs not to
duplicate work for tracking ip in the very first iteration. That duplication
is not necessary as the GatewayMacResolverService is already implemented
with thread executors for the periodic monitoring.

Lastly, this gerrit augments the GatewayMacResolver service to provide
an extra boolean param called refreshExternalNetworkBridgeDpidIfNeeded.
That can be used to control whether dpid used gets updated when mac is
not getting resolved.

Change-Id: I142735f875d1a79144c204bec631712de00d9746
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/services/arp/GatewayMacResolverService.java