]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Delete routers that are requested but not reported as active
authorCarl Baldwin <carl.baldwin@hp.com>
Tue, 1 Apr 2014 22:02:17 +0000 (22:02 +0000)
committerMark McClain <mmcclain@yahoo-inc.com>
Tue, 8 Apr 2014 12:22:42 +0000 (08:22 -0400)
commit472412a000d12659bf2eb324277f8ee7168aa0c8
tree7c36eb2691b4df5513ec5576b09265b0b3817cba
parent82eff3762942b3b46490d30eb3fe28dd40a6c607
Delete routers that are requested but not reported as active

There are two cases that I can think of that result in a router being
requested but not reported as active.  One is that admin_state_up has
been set to False.  In this case, the router is never removed and
continues to be operational.

The other case is if a router is changed and then deleted before the
change is processed.  In this case, it is prudent to be sure that the
router is queued for deletion.

Change-Id: I4738f599a18f0d130cc8ad4d4dafc488eec75ffd
Closes-Bug: #1215387
(cherry picked from commit 9da60d0a417dd70c16ae34f5877c564e425e4cf8)
neutron/agent/l3_agent.py
neutron/tests/unit/test_l3_agent.py