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

rpc: Convert X509 calls


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 9834e2bc
......@@ -342,5 +342,5 @@ _MISC_CALLS = [
]
CALLS = {
"RpcClientDefault": _IMPEXP_CALLS,
"RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS),
}
......@@ -1518,30 +1518,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
return self._MultiNodeCall(node_list, "hypervisor_validate_params",
[hvname, hv_full])
@_RpcTimeout(_TMO_NORMAL)
def call_x509_cert_create(self, node, validity):
"""Creates a new X509 certificate for SSL/TLS.
This is a single-node call.
@type validity: int
@param validity: Validity in seconds
"""
return self._SingleNodeCall(node, "x509_cert_create", [validity])
@_RpcTimeout(_TMO_NORMAL)
def call_x509_cert_remove(self, node, name):
"""Removes a X509 certificate.
This is a single-node call.
@type name: string
@param name: Certificate name
"""
return self._SingleNodeCall(node, "x509_cert_remove", [name])
@_RpcTimeout(_TMO_NORMAL)
def call_import_start(self, node, opts, instance, component,
dest, dest_args):
......
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