'Handle the port.delete.end notification event.'

@_wait_if_syncing
def port_delete_end(self, context, payload):

    port = self.cache.get_port_by_id(payload['port_id'])
    self.cache.deleted_ports.add(payload['port_id'])
    if (not port):
        return
    with _net_lock(port.network_id):
        port = self.cache.get_port_by_id(payload['port_id'])
        if (not port):
            return
        network = self.cache.get_network_by_id(port.network_id)
        self.cache.remove_port(port)
        if self._is_port_on_this_agent(port):
            self.call_driver('disable', network)
            self.schedule_resync('Agent    port    was    deleted', port.network_id)
        else:
            self.call_driver('reload_allocations', network)
