Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -342,5 +342,5 @@ _MISC_CALLS = [ ...@@ -342,5 +342,5 @@ _MISC_CALLS = [
] ]
CALLS = { CALLS = {
"RpcClientDefault": _IMPEXP_CALLS, "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS),
} }
...@@ -1518,30 +1518,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault): ...@@ -1518,30 +1518,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
return self._MultiNodeCall(node_list, "hypervisor_validate_params", return self._MultiNodeCall(node_list, "hypervisor_validate_params",
[hvname, hv_full]) [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) @_RpcTimeout(_TMO_NORMAL)
def call_import_start(self, node, opts, instance, component, def call_import_start(self, node, opts, instance, component,
dest, dest_args): dest, dest_args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment