]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix to enable delete of firewall in PENDING_CREATE state
authorSridar Kandaswamy <skandasw@cisco.com>
Fri, 27 Sep 2013 17:10:35 +0000 (10:10 -0700)
committerSridar Kandaswamy <skandasw@cisco.com>
Fri, 27 Sep 2013 18:40:44 +0000 (11:40 -0700)
commit955a966b0b616cca58242ea2841f23f868be058e
tree1a7eaf20d6831da8e07dc5b54fb608f462fc3b74
parent4b4e79184b3e007bf6e45c8df504ef150f3abb8e
Fix to enable delete of firewall in PENDING_CREATE state

Firewall will in PENDING_CREATE state if there is no underlying router in the
tenant. When the router and an associated i/f is created then with a sequence
of msgs it is set to ACTIVE state by the plugin. If a delete is triggered when
in PENDING_CREATE state in such a situation, the msg was ignored - fixing this to
account for the fact that a delete makes sense in this situation so the agent
sends the appropriate msg back to the plugin so it can delete it.

Change-Id: Id1db0a8413fd815b518fe4dc57fc6277c09e7f00
Closes-Bug: #1223478
neutron/services/firewall/agents/l3reference/firewall_l3_agent.py
neutron/tests/unit/services/firewall/agents/l3reference/test_firewall_l3_agent.py