'Returns the list of extra specs for a given flavor.'

@extensions.expected_errors(404)
def index(self, req, flavor_id):

    context = req.environ['nova.context']
    context.can((fes_policies.POLICY_ROOT % 'index'))
    return self._get_extra_specs(context, flavor_id)
