Merge "Expunge session contents between plugin requests"
This commit is contained in:
commit
0170139c25
@ -216,6 +216,7 @@ def _destroy_metadata_access_network(plugin, context, router_id, ports):
|
|||||||
plugin.remove_router_interface(
|
plugin.remove_router_interface(
|
||||||
context, router_id, {'port_id': meta_port['id']})
|
context, router_id, {'port_id': meta_port['id']})
|
||||||
greenthread.sleep(0) # yield
|
greenthread.sleep(0) # yield
|
||||||
|
context.session.expunge_all()
|
||||||
try:
|
try:
|
||||||
# Remove network (this will remove the subnet too)
|
# Remove network (this will remove the subnet too)
|
||||||
plugin.delete_network(context, meta_net_id)
|
plugin.delete_network(context, meta_net_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user