Revision 6613661a lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
1498 | 1498 |
return self._SingleNodeCall(node, "x509_cert_remove", [name]) |
1499 | 1499 |
|
1500 | 1500 |
@_RpcTimeout(_TMO_NORMAL) |
1501 |
def call_import_start(self, node, opts, instance, dest, dest_args): |
|
1501 |
def call_import_start(self, node, opts, instance, component, |
|
1502 |
dest, dest_args): |
|
1502 | 1503 |
"""Starts a listener for an import. |
1503 | 1504 |
|
1504 | 1505 |
This is a single-node call. |
... | ... | |
1507 | 1508 |
@param node: Node name |
1508 | 1509 |
@type instance: C{objects.Instance} |
1509 | 1510 |
@param instance: Instance object |
1511 |
@type component: string |
|
1512 |
@param component: which part of the instance is being imported |
|
1510 | 1513 |
|
1511 | 1514 |
""" |
1512 | 1515 |
return self._SingleNodeCall(node, "import_start", |
1513 | 1516 |
[opts.ToDict(), |
1514 |
self._InstDict(instance), dest, |
|
1517 |
self._InstDict(instance), component, dest,
|
|
1515 | 1518 |
_EncodeImportExportIO(dest, dest_args)]) |
1516 | 1519 |
|
1517 | 1520 |
@_RpcTimeout(_TMO_NORMAL) |
1518 | 1521 |
def call_export_start(self, node, opts, host, port, |
1519 |
instance, source, source_args): |
|
1522 |
instance, component, source, source_args):
|
|
1520 | 1523 |
"""Starts an export daemon. |
1521 | 1524 |
|
1522 | 1525 |
This is a single-node call. |
... | ... | |
1525 | 1528 |
@param node: Node name |
1526 | 1529 |
@type instance: C{objects.Instance} |
1527 | 1530 |
@param instance: Instance object |
1531 |
@type component: string |
|
1532 |
@param component: which part of the instance is being imported |
|
1528 | 1533 |
|
1529 | 1534 |
""" |
1530 | 1535 |
return self._SingleNodeCall(node, "export_start", |
1531 | 1536 |
[opts.ToDict(), host, port, |
1532 |
self._InstDict(instance), source, |
|
1537 |
self._InstDict(instance), |
|
1538 |
component, source, |
|
1533 | 1539 |
_EncodeImportExportIO(source, source_args)]) |
1534 | 1540 |
|
1535 | 1541 |
@_RpcTimeout(_TMO_FAST) |
Also available in: Unified diff