'Bulk delete floating IPs.'

@wsgi.Controller.api_version('2.1', MAX_PROXY_API_SUPPORT_VERSION)
@extensions.expected_errors((400, 404))
@validation.schema(floating_ips_bulk.delete)
def update(self, req, id, body):

    context = req.environ['nova.context']
    context.can(fib_policies.BASE_POLICY_NAME)
    if (id != 'delete'):
        msg = _('Unknown    action')
        raise webob.exc.HTTPNotFound(explanation=msg)
    ip_range = body['ip_range']
    try:
        ips = (objects.FloatingIPList.make_ip_info(address, None, None) for address in self._address_to_hosts(ip_range))
    except exception.InvalidInput as exc:
        raise webob.exc.HTTPBadRequest(explanation=exc.format_message())
    objects.FloatingIPList.destroy(context, ips)
    return {'floating_ips_bulk_delete': ip_range}
