Revision c4de9b7a lib/rpc.py

b/lib/rpc.py
499 499
        nic['nicparams'])
500 500
    return idict
501 501

  
502
  def _InstDictHvpBep(self, (instance, hvp, bep)):
503
    """Wrapper for L{_InstDict}.
504

  
505
    """
506
    return self._InstDict(instance, hvp=hvp, bep=bep)
507

  
508
  def _InstDictOsp(self, (instance, osparams)):
509
    """Wrapper for L{_InstDict}.
510

  
511
    """
512
    return self._InstDict(instance, osp=osparams)
513

  
502 514
  def _MultiNodeCall(self, node_list, procedure, args, read_timeout=None):
503 515
    """Helper for making a multi-node call
504 516

  
......
631 643
  # Begin RPC calls
632 644
  #
633 645

  
634
  @_RpcTimeout(_TMO_NORMAL)
635
  def call_instance_start(self, node, instance, hvp, bep, startup_paused):
636
    """Starts an instance.
637

  
638
    This is a single-node call.
639

  
640
    """
641
    idict = self._InstDict(instance, hvp=hvp, bep=bep)
642
    return self._SingleNodeCall(node, "instance_start", [idict, startup_paused])
643

  
644
  @_RpcTimeout(_TMO_1DAY)
645
  def call_instance_os_add(self, node, inst, reinstall, debug, osparams=None):
646
    """Installs an OS on the given instance.
647

  
648
    This is a single-node call.
649

  
650
    """
651
    return self._SingleNodeCall(node, "instance_os_add",
652
                                [self._InstDict(inst, osp=osparams),
653
                                 reinstall, debug])
654

  
655 646
  @classmethod
656 647
  @_RpcTimeout(_TMO_NORMAL)
657 648
  def call_upload_file(cls, node_list, file_name, address_list=None):

Also available in: Unified diff