Merge "NSXv: concurrent subnet creation bugfix"

This commit is contained in:
Jenkins 2016-11-13 07:21:47 +00:00 committed by Gerrit Code Review
commit 82a12dec8a

View File

@ -1927,6 +1927,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
err_msg = _("The requested subnet contains reserved IP's")
raise n_exc.InvalidInput(error_message=err_msg)
with locking.LockManager.get_lock(subnet['subnet']['network_id']):
with locking.LockManager.get_lock('nsx-edge-pool'):
s = super(NsxVPluginV2, self).create_subnet(context, subnet)
if s['enable_dhcp']: