Once gateway is set, external_gateway_added() was getting called every time
a router update was received. The check for change in external
gateway compared previously cached copy of gateway port (ri.ex_gw_port) with
the one passed in through update router (ri.router['gw_port']).
The cached copy was already being modified by code so the two values would
always appear to be different.
Making the change to compare correctly and remove actions not required
for gateway update.
Reviewed: https:/ /review. openstack. org/109776 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=596908f8a8a ecff06b079147b9 57c7da3dc7a51b
Committed: https:/
Submitter: Jenkins
Branch: master
commit 596908f8a8aecff 06b079147b957c7 da3dc7a51b
Author: rajeev <email address hidden>
Date: Fri Jul 25 18:50:34 2014 -0400
Improve external gateway update handling
Once gateway is set, external_ gateway_ added() was getting called every time 'gw_port' ]).
a router update was received. The check for change in external
gateway compared previously cached copy of gateway port (ri.ex_gw_port) with
the one passed in through update router (ri.router[
The cached copy was already being modified by code so the two values would
always appear to be different.
Making the change to compare correctly and remove actions not required
for gateway update.
Change-Id: I1a703b327e6c56 9dfaa8263a222e4 bc797e5dbfd
Closes-Bug: 1348737