Revision 6abf7f2c lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
1265 | 1265 |
return cls._StaticMultiNodeCall(node_list, "jobqueue_rename", rename, |
1266 | 1266 |
address_list=address_list) |
1267 | 1267 |
|
1268 |
@classmethod |
|
1269 |
@_RpcTimeout(_TMO_FAST) |
|
1270 |
def call_jobqueue_set_drain(cls, node_list, drain_flag): |
|
1271 |
"""Set the drain flag on the queue. |
|
1272 |
|
|
1273 |
This is a multi-node call. |
|
1274 |
|
|
1275 |
@type node_list: list |
|
1276 |
@param node_list: the list of nodes to query |
|
1277 |
@type drain_flag: bool |
|
1278 |
@param drain_flag: if True, will set the drain flag, otherwise reset it. |
|
1279 |
|
|
1280 |
""" |
|
1281 |
return cls._StaticMultiNodeCall(node_list, "jobqueue_set_drain", |
|
1282 |
[drain_flag]) |
|
1283 |
|
|
1284 | 1268 |
@_RpcTimeout(_TMO_NORMAL) |
1285 | 1269 |
def call_hypervisor_validate_params(self, node_list, hvname, hvparams): |
1286 | 1270 |
"""Validate the hypervisor params. |
Also available in: Unified diff