]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Verify ML2 type driver exists before calling del
authorKevin Benton <blak111@gmail.com>
Sun, 6 Apr 2014 11:57:36 +0000 (04:57 -0700)
committerGerrit Code Review <review@openstack.org>
Sun, 13 Apr 2014 09:21:28 +0000 (09:21 +0000)
commitaf89d74d2961db6a04572375150ad908c9e72e78
tree09f057a0673e5a28cabc8482e84f3c3cccad2200
parent405fa193cec17a0f12d11dc5690ef95b69bf3493
Verify ML2 type driver exists before calling del

Verifies that an ML2 type driver exists for a given
segment type before attempting to call the release_segment
method on it. Logs an error if a type driver is not
found.

This covers the case where a segment is created with
a given type and then ML2 is reconfigured without
support for that type.

DocImpact
The ML2 documentation should be updated with a warning
that disabling a network type driver and re-enabling
it later may lead to possible DB inconsistencies.

Closes-Bug: #1292102
Change-Id: I65a35abf3ed57347bb6e8fee228f8c0697217c00
neutron/plugins/ml2/managers.py
neutron/tests/unit/ml2/test_ml2_plugin.py