Revision 5a8648eb lib/config.py
b/lib/config.py | ||
---|---|---|
877 | 877 |
return self._config_data.cluster.master_netdev |
878 | 878 |
|
879 | 879 |
@locking.ssynchronized(_config_lock, shared=1) |
880 |
def GetMasterNetmask(self): |
|
881 |
"""Get the netmask of the master node for this cluster. |
|
882 |
|
|
883 |
""" |
|
884 |
return self._config_data.cluster.master_netmask |
|
885 |
|
|
886 |
@locking.ssynchronized(_config_lock, shared=1) |
|
880 | 887 |
def GetFileStorageDir(self): |
881 | 888 |
"""Get the file storage dir for this cluster. |
882 | 889 |
|
... | ... | |
1839 | 1846 |
constants.SS_MASTER_CANDIDATES_IPS: mc_ips_data, |
1840 | 1847 |
constants.SS_MASTER_IP: cluster.master_ip, |
1841 | 1848 |
constants.SS_MASTER_NETDEV: cluster.master_netdev, |
1849 |
constants.SS_MASTER_NETMASK: str(cluster.master_netmask), |
|
1842 | 1850 |
constants.SS_MASTER_NODE: cluster.master_node, |
1843 | 1851 |
constants.SS_NODE_LIST: node_data, |
1844 | 1852 |
constants.SS_NODE_PRIMARY_IPS: node_pri_ips_data, |
Also available in: Unified diff