Lines Matching full:hostname

80     @return: A dictionary containing arguments for host specifically hostname,
84 hostname, afe_host = server_utils.get_host_info_from_machine(machine)
114 hostname, user, password, port = server_utils.parse_machine(hostname, user,
119 'hostname': hostname,
132 def _detect_host(connectivity_class, hostname, **args): argument
142 @param hostname: A string representing the host name of the device.
149 preset_host = _preset_host(hostname)
152 hostname)
154 with closing(connectivity_class(hostname, **args)) as host:
159 os.environ['HOST_%s' % hostname] = str(host_module.__name__)
167 def _preset_host(hostname): argument
170 @param hostname: A string representing the host name of the device.
175 preset_host = os.getenv('HOST_%s' % hostname)
180 def _choose_connectivity_class(hostname, ssh_port): argument
181 """Choose a connectivity class for this hostname.
183 @param hostname: hostname that we need a connectivity class for.
188 if (hostname == 'localhost' and ssh_port == DEFAULT_SSH_PORT):
194 def _verify_connectivity(connectivity_class, hostname, **args): argument
204 with closing(ssh_host.SSHHost(hostname, **args)) as host:
233 representing the DUT hostname (for legacy caller support).
234 If it is a machine dict, the 'hostname' key is required.
253 hostname = detected_args.pop('hostname')
266 connectivity_class = _choose_connectivity_class(hostname, args['port'])
287 _verify_connectivity(connectivity_class, hostname, **args)
288 host_class = _detect_host(connectivity_class, hostname, **args)
298 custom_host_class = type("%s_host" % hostname, classes, {})
302 logging.info('creating host class for {} w/ {}||'.format(hostname, args))
303 host_instance = custom_host_class(hostname, **args)
306 if hostname not in _started_hostnames:
308 _started_hostnames.add(hostname)
317 representing the testbed hostname (for legacy caller
319 If it is a machine dict, the 'hostname' key is required.
328 hostname = machine['hostname'] if isinstance(machine, dict) else machine
330 hostname in ['localhost', '127.0.0.1']):
331 hostname = CONFIG.get_config_value('SSP', 'host_container_ip', type=str,
334 machine['hostname'] = hostname
336 machine = hostname
337 logging.debug('Hostname of machine is converted to %s for the test to '
338 'run inside a container.', hostname)
342 def create_target_host(hostname, host_info_path=None, host_info_store=None, argument
346 @param hostname: hostname of the device
360 'hostname': hostname,
365 machine = hostname