NSX: _delete_port was changed to ipam.delete_port
Commit b522896c3132ebde5dfe77fd1352df91d39d90e9 changed the internal _delete_port method. Change-Id: I2432e5fd885c0f465b7fd7b18011e501f06f3ad0
This commit is contained in:
parent
c8a53247bb
commit
9f3cc1d84d
|
@ -1156,7 +1156,7 @@ class NsxPluginV2(addr_pair_db.AllowedAddressPairsMixin,
|
|||
LOG.error(_LE("Unable to create port or set port "
|
||||
"attachment in NSX."))
|
||||
with context.session.begin(subtransactions=True):
|
||||
self._delete_port(context, neutron_port_id)
|
||||
self.ipam.delete_port(context, neutron_port_id)
|
||||
|
||||
self.handle_port_dhcp_access(context, port_data, action='create_port')
|
||||
return port_data
|
||||
|
|
|
@ -999,7 +999,7 @@ class NsxVPluginV2(agents_db.AgentDbMixin,
|
|||
# There is only DHCP port available
|
||||
if len(ports) == 1:
|
||||
port = ports.pop()
|
||||
self._delete_port(context, port['id'])
|
||||
self.ipam.delete_port(context, port['id'])
|
||||
|
||||
if subnet['enable_dhcp']:
|
||||
# Delete the DHCP edge service
|
||||
|
@ -1086,7 +1086,7 @@ class NsxVPluginV2(agents_db.AgentDbMixin,
|
|||
ports = self.get_ports(context, filters=filters)
|
||||
for port in ports:
|
||||
if port["device_owner"] == constants.DEVICE_OWNER_DHCP:
|
||||
self._delete_port(context, port['id'])
|
||||
self.ipam.delete_port(context, port['id'])
|
||||
address_groups = self._create_network_dhcp_address_group(context,
|
||||
network_id)
|
||||
self._update_dhcp_edge_service(context, network_id,
|
||||
|
|
Loading…
Reference in New Issue