Lines Matching refs:label1
78 >>> rpc_interface.add_label(name='label1', platform=False)
85 >>> data == [{'id': 2, 'name': 'label1', 'platform': 0, 'kernel_config': '',
96 >>> rpc_interface.delete_label('label1')
211 >>> rpc_interface.add_label(name='label1')
217 >>> rpc_interface.host_add_labels(id='host1', labels=['label1'])
218 >>> rpc_interface.host_add_labels(id='host2', labels=['label1', 'label2'])
223 [u'label1']
226 [u'label1', u'label2']
232 >>> data = rpc_interface.get_hosts(labels__name='label1')
243 [u'label1']
248 >>> rpc_interface.host_remove_labels(id='host2', labels=['label1'])
249 >>> rpc_interface.host_remove_labels(id='host1', labels=['label1'])
254 >>> rpc_interface.label_add_hosts(id='label1', hosts=['host1'])
260 [u'label1', u'label2']
269 >>> data = rpc_interface.get_hosts(labels__name='label1')
280 [u'label1', u'label2']