Lines Matching refs:hostname
88 def get_labels_from_afe(hostname, label_prefix, afe):
95 @param hostname: hostname of given DUT.
103 host__hostname__in=[hostname])
108 def get_label_from_afe(hostname, label_prefix, afe):
115 @param hostname: hostname of given DUT.
121 labels = get_labels_from_afe(hostname, label_prefix, afe)
126 def get_board_from_afe(hostname, afe):
133 @param hostname: hostname of given DUT.
138 return get_label_from_afe(hostname, constants.BOARD_PREFIX, afe)
141 def get_build_from_afe(hostname, afe):
146 @param hostname: hostname of given DUT.
152 return get_label_from_afe(hostname, constants.VERSION_PREFIX, afe)
266 'SERVER', 'hostname')
305 @return: The hostname of a host matching all labels, and locked through the
306 lock_manager. The hostname will be as specified in the database the afe
308 suffix, the hostname returned will contain a .cros suffix.
323 if lock_manager.lock([host.hostname]):
325 host.hostname, labels)
326 return host.hostname
329 host.hostname, labels)
477 hostname = global_config.global_config.get_config_value(
479 return bool(hostname)
483 """Read the hostname of the global AFE from the global configuration."""
530 def get_special_task_exec_path(hostname, task_id, task_name, time_requested):
535 * Master: hosts/hostname/task_id-task_type
543 @param hostname Hostname
550 results_path = 'hosts/%s/%s-%s' % (hostname, task_id, task_name.lower())
683 """Lookup hostname from a machine string or dict.
685 @returns: Machine hostname in string format.
687 hostname, _ = get_host_info_from_machine(machine)
688 return hostname
694 @returns: Tuple of (hostname, host_attributes)
697 return (machine['hostname'], machine['host_attributes'])