Commit f69b367e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

rpc: Convert storage-related calls


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent e437117f
......@@ -343,5 +343,6 @@ _MISC_CALLS = [
CALLS = {
"RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS + _OS_CALLS + _NODE_CALLS +
_FILE_STORAGE_CALLS + _MISC_CALLS + _INSTANCE_CALLS + _BLOCKDEV_CALLS),
_FILE_STORAGE_CALLS + _MISC_CALLS + _INSTANCE_CALLS + _BLOCKDEV_CALLS +
_STORAGE_CALLS),
}
......@@ -625,36 +625,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
# Begin RPC calls
#
@_RpcTimeout(_TMO_NORMAL)
def call_storage_list(self, node_list, su_name, su_args, name, fields):
"""Get list of storage units.
This is a multi-node call.
"""
return self._MultiNodeCall(node_list, "storage_list",
[su_name, su_args, name, fields])
@_RpcTimeout(_TMO_NORMAL)
def call_storage_modify(self, node, su_name, su_args, name, changes):
"""Modify a storage unit.
This is a single-node call.
"""
return self._SingleNodeCall(node, "storage_modify",
[su_name, su_args, name, changes])
@_RpcTimeout(_TMO_NORMAL)
def call_storage_execute(self, node, su_name, su_args, name, op):
"""Executes an operation on a storage unit.
This is a single-node call.
"""
return self._SingleNodeCall(node, "storage_execute",
[su_name, su_args, name, op])
@_RpcTimeout(_TMO_NORMAL)
def call_instance_start(self, node, instance, hvp, bep, startup_paused):
"""Starts an instance.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment