]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Improve external gateway update handling
authorrajeev <rajeev_grover@hp.com>
Fri, 25 Jul 2014 22:50:34 +0000 (18:50 -0400)
committerrajeev <rajeev_grover@hp.com>
Thu, 7 Aug 2014 17:06:58 +0000 (13:06 -0400)
commit596908f8a8aecff06b079147b957c7da3dc7a51b
tree2ae03f651a336d34d9beeb4fa65b0dfcb1ca8b9a
parentcada146fe3862c0a7001e4e1a115e54845ce97cd
Improve external gateway update handling

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.

Change-Id: I1a703b327e6c569dfaa8263a222e4bc797e5dbfd
Closes-Bug: 1348737
neutron/agent/l3_agent.py
neutron/tests/unit/test_l3_agent.py