Revision 54498047

b/lib/build/rpc_definitions.py
342 342
  ]
343 343

  
344 344
CALLS = {
345
  "RpcClientDefault": _IMPEXP_CALLS,
345
  "RpcClientDefault": (_IMPEXP_CALLS + _X509_CALLS),
346 346
  }
b/lib/rpc.py
1519 1519
                               [hvname, hv_full])
1520 1520

  
1521 1521
  @_RpcTimeout(_TMO_NORMAL)
1522
  def call_x509_cert_create(self, node, validity):
1523
    """Creates a new X509 certificate for SSL/TLS.
1524

  
1525
    This is a single-node call.
1526

  
1527
    @type validity: int
1528
    @param validity: Validity in seconds
1529

  
1530
    """
1531
    return self._SingleNodeCall(node, "x509_cert_create", [validity])
1532

  
1533
  @_RpcTimeout(_TMO_NORMAL)
1534
  def call_x509_cert_remove(self, node, name):
1535
    """Removes a X509 certificate.
1536

  
1537
    This is a single-node call.
1538

  
1539
    @type name: string
1540
    @param name: Certificate name
1541

  
1542
    """
1543
    return self._SingleNodeCall(node, "x509_cert_remove", [name])
1544

  
1545
  @_RpcTimeout(_TMO_NORMAL)
1546 1522
  def call_import_start(self, node, opts, instance, component,
1547 1523
                        dest, dest_args):
1548 1524
    """Starts a listener for an import.

Also available in: Unified diff