'Return a list of floating IPs allocated to a project.'

@wsgi.Controller.api_version('2.1', MAX_PROXY_API_SUPPORT_VERSION)
@extensions.expected_errors(())
def index(self, req):

    context = req.environ['nova.context']
    context.can(fi_policies.BASE_POLICY_NAME)
    floating_ips = self.network_api.get_floating_ips_by_project(context)
    return _translate_floating_ips_view(floating_ips)
