Home | History | Annotate | Download | only in hosts

Lines Matching refs:hostname

63     @return: A dictionary containing arguments for host specifically hostname,
67 hostname, afe_host = server_utils.get_host_info_from_machine(machine)
84 hostname, user, password, port = server_utils.parse_machine(hostname, user,
88 'hostname': hostname,
101 def _detect_host(connectivity_class, hostname, **args):
111 @param hostname: A string representing the host name of the device.
120 with closing(connectivity_class(hostname, **args)) as host:
130 def _choose_connectivity_class(hostname, ssh_port):
131 """Choose a connectivity class for this hostname.
133 @param hostname: hostname that we need a connectivity class for.
138 if (hostname == 'localhost' and ssh_port == DEFAULT_SSH_PORT):
159 representing the DUT hostname (for legacy caller support).
160 If it is a machine dict, the 'hostname' key is required.
166 based off of hostname and config settings.
174 hostname = detected_args.pop('hostname')
187 connectivity_class = _choose_connectivity_class(hostname, args['port'])
192 or _detect_host(connectivity_class, hostname, **args))
196 custom_host_class = type("%s_host" % hostname, classes, {})
197 host_instance = custom_host_class(hostname, **args)
200 if hostname not in _started_hostnames:
202 _started_hostnames.add(hostname)
211 representing the testbed hostname (for legacy caller
213 If it is a machine dict, the 'hostname' key is required.
221 hostname = detected_args.pop('hostname')
223 return testbed.TestBed(hostname, **kwargs)
230 representing the testbed hostname (for legacy caller
232 If it is a machine dict, the 'hostname' key is required.
245 hostname = machine['hostname'] if isinstance(machine, dict) else machine
247 hostname in ['localhost', '127.0.0.1']):
248 hostname = CONFIG.get_config_value('SSP', 'host_container_ip', type=str,
251 machine['hostname'] = hostname
253 machine = hostname
254 logging.debug('Hostname of machine is converted to %s for the test to '
255 'run inside a container.', hostname)