Revision 370f2042
b/lib/rapi/client.py | ||
---|---|---|
1455 | 1455 |
("/%s/nodes/%s/role" % |
1456 | 1456 |
(GANETI_RAPI_VERSION, node)), query, role) |
1457 | 1457 |
|
1458 |
def ModifyNode(self, group, **kwargs):
|
|
1458 |
def ModifyNode(self, node, **kwargs):
|
|
1459 | 1459 |
"""Modifies a node. |
1460 | 1460 |
|
1461 | 1461 |
More details for parameters can be found in the RAPI documentation. |
1462 | 1462 |
|
1463 |
@type group: string
|
|
1464 |
@param group: Node name
|
|
1463 |
@type node: string
|
|
1464 |
@param node: Node name
|
|
1465 | 1465 |
@rtype: string |
1466 | 1466 |
@return: job id |
1467 | 1467 |
|
1468 | 1468 |
""" |
1469 | 1469 |
return self._SendRequest(HTTP_POST, |
1470 | 1470 |
("/%s/nodes/%s/modify" % |
1471 |
(GANETI_RAPI_VERSION, group)), None, kwargs)
|
|
1471 |
(GANETI_RAPI_VERSION, node)), None, kwargs)
|
|
1472 | 1472 |
|
1473 | 1473 |
def GetNodeStorageUnits(self, node, storage_type, output_fields): |
1474 | 1474 |
"""Gets the storage units for a node. |
b/lib/rapi/rlib2.py | ||
---|---|---|
513 | 513 |
baserlib.CheckType(self.request_body, dict, "Body contents") |
514 | 514 |
|
515 | 515 |
op = baserlib.FillOpcode(opcodes.OpNodeSetParams, self.request_body, { |
516 |
"instance_name": self.items[0],
|
|
516 |
"node_name": self.items[0],
|
|
517 | 517 |
}) |
518 | 518 |
|
519 | 519 |
return baserlib.SubmitJob([op]) |
Also available in: Unified diff