NSX|V fix crash when enabling subnets dhcp
When a subnets dhcp is being enabled, the lock was taken with the wrong parameter. Change-Id: I1d3f52a07a6375512c5812fe618abaf38c62f40e
This commit is contained in:
@@ -2564,8 +2564,7 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
||||
self.create_port(context, {'port': port_dict})
|
||||
# First time binding network with dhcp edge
|
||||
else:
|
||||
with locking.LockManager.get_lock(
|
||||
subnet['subnet']['network_id']):
|
||||
with locking.LockManager.get_lock(subnet['network_id']):
|
||||
self._update_dhcp_service_with_subnet(context, subnet)
|
||||
return
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user