Merge "NSX|V: ensure that DHCP bindings are deleted"
This commit is contained in:
commit
e9f0e5aed5
@ -276,11 +276,9 @@ class NsxVPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||||||
def _delete_dhcp_static_binding(self, context, neutron_port_db):
|
def _delete_dhcp_static_binding(self, context, neutron_port_db):
|
||||||
|
|
||||||
network_id = neutron_port_db['network_id']
|
network_id = neutron_port_db['network_id']
|
||||||
device_owner = neutron_port_db['device_owner']
|
self.edge_manager.delete_dhcp_binding(
|
||||||
if device_owner.startswith("compute"):
|
context, neutron_port_db['id'], network_id,
|
||||||
self.edge_manager.delete_dhcp_binding(
|
neutron_port_db['mac_address'])
|
||||||
context, neutron_port_db['id'], network_id,
|
|
||||||
neutron_port_db['mac_address'])
|
|
||||||
|
|
||||||
def _validate_provider_create(self, context, network):
|
def _validate_provider_create(self, context, network):
|
||||||
if not attr.is_attr_set(network.get(mpnet.SEGMENTS)):
|
if not attr.is_attr_set(network.get(mpnet.SEGMENTS)):
|
||||||
|
Loading…
Reference in New Issue
Block a user