Revision fb44c6db lib/cmdlib.py

b/lib/cmdlib.py
3797 3797
    _RedistributeAncillaryFiles(self)
3798 3798

  
3799 3799

  
3800
class LUClusterActivateMasterIp(NoHooksLU):
3801
  """Activate the master IP on the master node.
3802

  
3803
  """
3804
  def Exec(self, feedback_fn):
3805
    """Activate the master IP.
3806

  
3807
    """
3808
    master = self.cfg.GetMasterNode()
3809
    self.rpc.call_node_activate_master_ip(master)
3810

  
3811

  
3812
class LUClusterDeactivateMasterIp(NoHooksLU):
3813
  """Deactivate the master IP on the master node.
3814

  
3815
  """
3816
  def Exec(self, feedback_fn):
3817
    """Deactivate the master IP.
3818

  
3819
    """
3820
    master = self.cfg.GetMasterNode()
3821
    self.rpc.call_node_deactivate_master_ip(master)
3822

  
3823

  
3800 3824
def _WaitForSync(lu, instance, disks=None, oneshot=False):
3801 3825
  """Sleep and poll for an instance's disk to sync.
3802 3826

  

Also available in: Unified diff