Revision f9d20654 lib/config.py
b/lib/config.py | ||
---|---|---|
934 | 934 |
def GetMasterNetworkParameters(self): |
935 | 935 |
"""Get network parameters of the master node. |
936 | 936 |
|
937 |
@return: tuple consisting of (master_node, master_netdev, master_ip,
|
|
938 |
master_netmask, ip_family)
|
|
937 |
@rtype: L{object.MasterNetworkParameters}
|
|
938 |
@return: network parameters of the master node
|
|
939 | 939 |
|
940 | 940 |
""" |
941 | 941 |
cluster = self._config_data.cluster |
942 |
|
|
943 |
return (cluster.master_node, |
|
942 |
result = objects.MasterNetworkParameters(cluster.master_node, |
|
944 | 943 |
cluster.master_ip, |
945 | 944 |
cluster.master_netdev, |
946 | 945 |
cluster.master_netmask, |
947 | 946 |
cluster.primary_ip_family) |
948 | 947 |
|
948 |
return result |
|
949 |
|
|
949 | 950 |
@locking.ssynchronized(_config_lock) |
950 | 951 |
def AddNodeGroup(self, group, ec_id, check_uuid=True): |
951 | 952 |
"""Add a node group to the configuration. |
Also available in: Unified diff