Merge "NSX|V: ensure that DHCP bindings are deleted"

This commit is contained in:
Jenkins 2016-01-28 01:55:43 +00:00 committed by Gerrit Code Review
commit e9f0e5aed5

View File

@ -276,8 +276,6 @@ 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']
if device_owner.startswith("compute"):
self.edge_manager.delete_dhcp_binding( self.edge_manager.delete_dhcp_binding(
context, neutron_port_db['id'], network_id, context, neutron_port_db['id'], network_id,
neutron_port_db['mac_address']) neutron_port_db['mac_address'])