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:
Gary Kotton 2015-07-12 01:01:15 -07:00
parent c8a53247bb
commit 9f3cc1d84d
2 changed files with 3 additions and 3 deletions

View File

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

View File

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