Revision c9f4b8e6 lib/config.py

b/lib/config.py
930 930
    """
931 931
    return self._config_data.cluster.primary_ip_family
932 932

  
933
  @locking.ssynchronized(_config_lock, shared=1)
934
  def GetMasterNetworkParameters(self):
935
    """Get network parameters of the master node.
936

  
937
    @return: tuple consisting of (master_node, master_netdev, master_ip,
938
      master_netmask, ip_family)
939

  
940
    """
941
    cluster = self._config_data.cluster
942

  
943
    return (cluster.master_node,
944
      cluster.master_ip,
945
      cluster.master_netdev,
946
      cluster.master_netmask,
947
      cluster.primary_ip_family)
948

  
933 949
  @locking.ssynchronized(_config_lock)
934 950
  def AddNodeGroup(self, group, ec_id, check_uuid=True):
935 951
    """Add a node group to the configuration.

Also available in: Unified diff