Lines Matching refs:label2
80 >>> rpc_interface.add_label(name='label2', platform=True)
93 >>> rpc_interface.get_labels(name='label2')
213 >>> rpc_interface.add_label(name='label2', platform=True)
218 >>> rpc_interface.host_add_labels(id='host2', labels=['label1', 'label2'])
226 [u'label1', u'label2']
228 u'label2'
235 >>> data = rpc_interface.get_hosts(labels__name='label2')
240 >>> rpc_interface.host_remove_labels(id='host2', labels=['label2'])
244 >>> rpc_interface.get_hosts(labels__name='label2')
255 >>> rpc_interface.label_add_hosts(id='label2', hosts=['host1', 'host2'])
260 [u'label1', u'label2']
263 [u'label2']
265 u'label2'
272 >>> data = rpc_interface.get_hosts(labels__name='label2')
277 >>> rpc_interface.label_remove_hosts(id='label2', hosts=['host2'])
280 [u'label1', u'label2']
281 >>> data = rpc_interface.get_hosts(labels__name='label2')
286 >>> rpc_interface.label_add_hosts(id='label2', hosts=['host2'])
287 >>> data = rpc_interface.get_hosts(labels__name='label2')
290 >>> rpc_interface.label_remove_hosts(id='label2', hosts=['host2', 'host1'])
291 >>> rpc_interface.get_hosts(labels__name='label2')