diff --git a/midonet/neutron/plugin.py b/midonet/neutron/plugin.py index dacbed8..c40eabd 100644 --- a/midonet/neutron/plugin.py +++ b/midonet/neutron/plugin.py @@ -198,7 +198,7 @@ def update_network(self, context, id, network): return net @util.handle_api_error - @utils.synchronized('midonet-critical-section', external=True) + @utils.synchronized('midonet-network-lock', external=True) def delete_network(self, context, id): """Delete a network and its corresponding MidoNet bridge.""" LOG.info(_("MidonetPluginV2.delete_network called: id=%r"), id) @@ -285,7 +285,7 @@ def _process_create_port(self, context, port): return new_port @util.handle_api_error - @utils.synchronized('midonet-critical-section', external=True) + @utils.synchronized('midonet-port-lock', external=True) def create_port(self, context, port): """Create a L2 port in Neutron/MidoNet.""" LOG.info(_("MidonetPluginV2.create_port called: port=%r"), port) @@ -305,7 +305,7 @@ def create_port(self, context, port): return new_port @util.handle_api_error - @utils.synchronized('midonet-critical-section', external=True) + @utils.synchronized('midonet-port-lock', external=True) def delete_port(self, context, id, l3_port_check=True): """Delete a neutron port and corresponding MidoNet bridge port.""" LOG.info(_("MidonetPluginV2.delete_port called: id=%(id)s "