'Returns a list of VIFs, transformed through entity_maker.'

def _items(self, req, server_id, entity_maker):

    context = req.environ['nova.context']
    context.can(vif_policies.BASE_POLICY_NAME)
    instance = common.get_instance(self.compute_api, context, server_id)
    try:
        vifs = self.network_api.get_vifs_by_instance(context, instance)
    except NotImplementedError:
        msg = _('Listing    virtual    interfaces    is    not    supported    by    this    cloud.')
        raise webob.exc.HTTPBadRequest(explanation=msg)
    limited_list = common.limited(vifs, req)
    res = [entity_maker(req, vif) for vif in limited_list]
    return {'virtual_interfaces': res}
