rpc: Convert X509 calls
authorMichael Hanselmann <hansmi@google.com>
Mon, 24 Oct 2011 15:39:57 +0000 (17:39 +0200)
committerMichael Hanselmann <hansmi@google.com>
Wed, 26 Oct 2011 08:53:29 +0000 (10:53 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/build/rpc_definitions.py
lib/rpc.py

index 65e38ea..b1a0eed 100644 (file)
@@ -342,5 +342,5 @@ _MISC_CALLS = [
   ]
 
 CALLS = {
-  "RpcClientDefault": _IMPEXP_CALLS,
+  "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS),
   }
index e1f0f08..4f8fa4e 100644 (file)
@@ -1519,30 +1519,6 @@ class RpcRunner(_generated_rpc.RpcClientDefault):
                                [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):
     """Starts a listener for an import.