Home | History | Annotate | Download | only in hosts

Lines Matching refs:hostname

58 def _detect_host(connectivity_class, hostname, **args):
68 @param hostname: A string representing the host name of the device.
77 with closing(connectivity_class(hostname, **args)) as host:
87 def _choose_connectivity_class(hostname, ssh_port):
88 """Choose a connectivity class for this hostname.
90 @param hostname: hostname that we need a connectivity class for.
95 if (hostname == 'localhost' and ssh_port == DEFAULT_SSH_PORT):
121 representing the DUT hostname (for legacy caller support).
122 If it is a machine dict, the 'hostname' key is required.
128 based off of hostname and config settings.
135 hostname, host_attributes = server_utils.get_host_info_from_machine(
141 hostname, args['user'], args['password'], ssh_port = \
142 server_utils.parse_machine(hostname, ssh_user, ssh_pass, ssh_port)
148 connectivity_class = _choose_connectivity_class(hostname, ssh_port)
154 classes = [_detect_host(connectivity_class, hostname, **args),
158 host_class = type("%s_host" % hostname, tuple(classes), {})
159 host_instance = host_class(hostname, **args)
162 if hostname not in _started_hostnames:
164 _started_hostnames.add(hostname)
173 representing the testbed hostname (for legacy caller
175 If it is a machine dict, the 'hostname' key is required.
182 hostname, host_attributes = server_utils.get_host_info_from_machine(
185 return testbed.TestBed(hostname, **kwargs)
192 representing the testbed hostname (for legacy caller
194 If it is a machine dict, the 'hostname' key is required.