]> 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)
committerCarl Baldwin <carl.baldwin@hp.com>
Wed, 2 Apr 2014 21:58:16 +0000 (21:58 +0000)
commit9da60d0a417dd70c16ae34f5877c564e425e4cf8
tree3943ba11124c55537477ce8b08703cbd675f2c58
parentb62fb20ec22abaaf8f5da58fac60fafdaa3bd86e
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
neutron/agent/l3_agent.py
neutron/tests/unit/test_l3_agent.py