Revision 94497dd1 lib/rapi/client.py
b/lib/rapi/client.py | ||
---|---|---|
1449 | 1449 |
("/%s/nodes/%s/role" % |
1450 | 1450 |
(GANETI_RAPI_VERSION, node)), query, role) |
1451 | 1451 |
|
1452 |
def ModifyNode(self, group, **kwargs): |
|
1453 |
"""Modifies a node. |
|
1454 |
|
|
1455 |
More details for parameters can be found in the RAPI documentation. |
|
1456 |
|
|
1457 |
@type group: string |
|
1458 |
@param group: Node name |
|
1459 |
@rtype: string |
|
1460 |
@return: job id |
|
1461 |
|
|
1462 |
""" |
|
1463 |
return self._SendRequest(HTTP_POST, |
|
1464 |
("/%s/nodes/%s/modify" % |
|
1465 |
(GANETI_RAPI_VERSION, group)), None, kwargs) |
|
1466 |
|
|
1452 | 1467 |
def GetNodeStorageUnits(self, node, storage_type, output_fields): |
1453 | 1468 |
"""Gets the storage units for a node. |
1454 | 1469 |
|
Also available in: Unified diff