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:
Adit Sarfaty
2017-05-18 14:33:31 +03:00
parent a68d379eee
commit c98a428a29

View File

@@ -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: