Merge "Expunge session contents between plugin requests"

This commit is contained in:
Jenkins 2014-02-06 14:25:21 +00:00 committed by Gerrit Code Review
commit 8b6f6de6eb

View File

@ -216,6 +216,7 @@ def _destroy_metadata_access_network(plugin, context, router_id, ports):
plugin.remove_router_interface(
context, router_id, {'port_id': meta_port['id']})
greenthread.sleep(0) # yield
context.session.expunge_all()
try:
# Remove network (this will remove the subnet too)
plugin.delete_network(context, meta_net_id)