Prints out and returns a list of known virtual environments.

        :rtype: list
        :return: list of virtual environments
18216
def op_list_venvs(self):
        
        self.logger.info('Listing known virtual environments ...')
        venvs = self.get_venvs()
        for venv in venvs:
            self.logger.info('Found `%s`' % venv)
        else:
            self.logger.info('No virtual environments found in `%s` directory.' % VENVS_DIRNAME)
        return venvs
436973
def sims(self):
        
        if self._sims is None:
            self._sims = SimList(self)
        return self._sims
436274
def get_visualizations():
    
    if not hasattr(g, 'visualizations'):
        g.visualizations = {}
        for VisClass in _get_visualization_classes():
            vis = VisClass(get_model())
            g.visualizations[vis.__class__.__name__] = vis
    return g.visualizations
572854
def layers_names(self):
		
		return list(self.__class__.__builtin_layers__.keys()) + list(self.__layers.keys())
1005763
def items(cls):
        
        return [
            cls.TRUE_COLOR,
            cls.FALSE_COLOR,
            cls.NDVI,
            cls.EVI
        ]
1121362
def list_vrf(self):
        

        try:
            vrfs = VRF.list()
        except NipapError, e:
            return json.dumps({'error': 1, 'message': e.args, 'type': type(e).__name__})

        return json.dumps(vrfs, cls=NipapJSONEncoder)
554705
def get_field_list(self):
        

        list_out = []
        for field in self.fields:
            list_out.append(field)

        return list_out
1253133
def list_(runas=None):
    '''
    
    '''
    ret = []
    output = _rbenv_exec(['install', '--list'], runas=runas)
    if output:
        for line in output.splitlines():
            if line == 'Available versions:':
                continue
            ret.append(line.strip())
    return ret
381988
def graphics(self) -> typing.List[Graphic]:
        
        return [Graphic(graphic) for graphic in self.__display_item.graphics]
1146725
def print_device_list(self, device_list=None):
        
        dev_list = device_list if device_list is not None else self.get_all_devices_in_portal()

        for dev in dev_list:
            print('{0}\t\t{1}\t\t{2}'.format(
                    dev['info']['description']['name'],
                    dev['sn'],
                    dev['portals_aliases']\
                        if len(dev['portals_aliases']) != 1
                        else dev['portals_aliases'][0]
                )
            )
953923
def vtrees(self):
        
        self.connection._check_login()
        response = self.connection._do_get("{}/{}".format(self.connection._api_url, "types/VTree/instances")).json()
        all_vtrees = []
        for vtree in response:
            all_vtrees.append(
                SIO_Vtree.from_dict(vtree)
            )
        return all_vtrees
817289
async def list(self) -> List[str]:
        

        LOGGER.debug('NodePoolManager.list >>>')

        rv = [p['pool'] for p in await pool.list_pools()]

        LOGGER.debug('NodePoolManager.list <<< %s', rv)
        return rv
938208
def list(self):
        
        try:
            return (yield from self._vmware_manager.list_vms())
        except VMwareError as e:
            raise GNS3VMError("Could not list VMware VMs: {}".format(str(e)))
114580
async def List(self, arches, region, root_storage_type, series, stream, virt_type):
        '''
        
        '''
        # map input types to rpc msg
        _params = dict()
        msg = dict(type='ImageMetadata',
                   request='List',
                   version=2,
                   params=_params)
        _params['arches'] = arches
        _params['region'] = region
        _params['root-storage-type'] = root_storage_type
        _params['series'] = series
        _params['stream'] = stream
        _params['virt-type'] = virt_type
        reply = await self.rpc(msg)
        return reply
837567
def list_websites(self):
        
        self.connect()
        results = self.server.list_websites(self.session_id)

        return results
157527
def list_images(self):
        # type: () -> List[str]
        
        r = self.get(self.registry_url + '/v2/_catalog', auth=self.auth)
        return r.json()['repositories']
676356
def avail_images():
    '''
    
    '''
    response = _query('grid', 'image/list')

    ret = {}
    for item in response['list']:
        name = item['friendlyName']
        ret[name] = item

    return ret