def __get_name_or_id(values, known):
        """
        Return list of values that match attribute ``.id`` or ``.name`` of any object in list `known`.

        :param str values: comma-separated list (i.e., a Python string) of items
        :param list known: list of libcloud items to filter
        :return: list of the libcloud items that match the given values
        """
        result = list()
        for element in [e.strip() for e in values.split(',')]:
            for item in [i for i in known if i.name == element or i.id == element]:
                result.append(item)
        return result