]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Ensure to remove auto delete ports from OFC in NEC plugin
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Wed, 12 Jun 2013 08:18:55 +0000 (17:18 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Wed, 12 Jun 2013 08:40:34 +0000 (17:40 +0900)
commitda6816c6c703be68f5a0ce537364bc096ec2bd9d
tree4e04cd66d88be68cc35d27942e1c30de200a44b9
parent08561f35aca96505ea7536ca3c8d2a4cd759d03c
Ensure to remove auto delete ports from OFC in NEC plugin

When deleting a network, dhcp ports are removed automatically
in db_plugin. This causes a failure network deletion since the
corresponding port exists on OFC and the network on OFC cannot
be deleted unless a subnet on the network is deleted explicitly.
This commit gets auto-delete ports and delete the corresponding
ports on the controller before deleting the network.

Fixes bug #1190163

Change-Id: Ifffaa1a28b5fac0b0a98036a926550255cc25c9d
quantum/plugins/nec/nec_plugin.py
quantum/tests/unit/nec/test_nec_plugin.py