Delete disassociated floating ips on external network deletion

Also remove redundant check for network in use in bigswitch plugin

Closes-Bug: #1238439
Closes-Bug: #1259144

Change-Id: I7586f43c2e99be9df491c68bf1e8658994ffd263
This commit is contained in:
Oleg Bondarev
2013-10-23 12:54:38 +04:00
parent d1282b1eda
commit 5ac6f4006e
21 changed files with 99 additions and 23 deletions

View File

@@ -444,6 +444,8 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
while True:
try:
with session.begin(subtransactions=True):
self._process_l3_delete(context, id)
# Get ports to auto-delete.
ports = (session.query(models_v2.Port).
enable_eagerloads(False).