'Get floating IP gracefully handling 404 from Neutron.'

def _safe_get_floating_ips(self, client, **kwargs):

    try:
        return client.list_floatingips(**kwargs)['floatingips']
    except neutron_client_exc.NotFound:
        return []
    except neutron_client_exc.NeutronClientException as e:
        if (e.status_code == 404):
            return []
        with excutils.save_and_reraise_exception():
            LOG.exception(_LE('Unable    to    access    floating    IP    for    %s'), ',    '.join([('%s    %s' % (k, v)) for (k, v) in kwargs.items()]))
