Lines Matching full:labels
54 return host_info.HostInfo(host.labels, host.attributes)
64 # copy of HostInfo from the AFE and then add/remove labels / attribtes
66 # parallel, we'll end up with corrupted labels / attributes.
69 list(set(old_info.labels) - set(new_info.labels)))
71 list(set(new_info.labels) - set(old_info.labels)))
75 def _remove_labels_on_afe(self, labels): argument
76 """Requests the AFE to remove the given labels.
78 @param labels: Remove these.
80 if not labels:
83 logging.debug('removing labels: %s', labels)
86 labels=labels)
91 def _add_labels_on_afe(self, labels): argument
92 """Requests the AFE to add the given labels.
94 @param labels: Add these.
96 if not labels:
99 logging.info('adding labels: %s', labels)
101 self._afe.run('host_add_labels', id=self._hostname, labels=labels)
125 """Adjust pool labels when calculating the labels to remove/add.
132 labels_to_remove = list(set(old_info.labels) - set(new_info.labels))
133 labels_to_add = list(set(new_info.labels) - set(old_info.labels))
150 # copy of HostInfo from the AFE and then add/remove labels / attribtes
152 # parallel, we'll end up with corrupted labels / attributes.