'Return a list of pools.'

@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(fip_policies.BASE_POLICY_NAME)
    pools = self.network_api.get_floating_ip_pools(context)
    return _translate_floating_ip_pools_view(pools)
