]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
ML2: Fix release of network segments to allocation pools
authorRobert Kukura <kukura@noironetworks.com>
Mon, 1 Sep 2014 11:27:10 +0000 (07:27 -0400)
committerRobert Kukura <kukura@noironetworks.com>
Mon, 1 Sep 2014 11:34:00 +0000 (07:34 -0400)
commitc71f0bbf967a9d356f1276839dd04098847e35cf
tree697f521c647f76cc5e15042426aa945a26b9e243
parent2b3c20591d295e874460d8f448dd2a7e199dc90f
ML2: Fix release of network segments to allocation pools

The recent merge of https://review.openstack.org/#/c/115025/ broke the
release of network segments to allocation pools on network delete,
resulting in network creates eventually failing with
NoNetworkAvailable exceptions. The network_delete() code is rearranged
to properly release the network segments, and a unit test is updated
to verify that the type drivers' release_segment() method is called.

Partially implements: Blueprint ml2-type-driver-refactor

Change-Id: Ica5f11b2012dedfcc097f34f1515f5f3ca208fd2
neutron/plugins/ml2/plugin.py
neutron/tests/unit/ml2/test_ml2_plugin.py