Revision 5a8648eb lib/ssconf.py
b/lib/ssconf.py | ||
---|---|---|
152 | 152 |
def GetMasterNetdev(self): |
153 | 153 |
return self._config_data["cluster"]["master_netdev"] |
154 | 154 |
|
155 |
def GetMasterNetmask(self): |
|
156 |
return self._config_data["cluster"]["master_netmask"] |
|
157 |
|
|
155 | 158 |
def GetFileStorageDir(self): |
156 | 159 |
return self._config_data["cluster"]["file_storage_dir"] |
157 | 160 |
|
... | ... | |
280 | 283 |
constants.SS_MASTER_CANDIDATES_IPS, |
281 | 284 |
constants.SS_MASTER_IP, |
282 | 285 |
constants.SS_MASTER_NETDEV, |
286 |
constants.SS_MASTER_NETMASK, |
|
283 | 287 |
constants.SS_MASTER_NODE, |
284 | 288 |
constants.SS_NODE_LIST, |
285 | 289 |
constants.SS_NODE_PRIMARY_IPS, |
... | ... | |
408 | 412 |
""" |
409 | 413 |
return self._ReadFile(constants.SS_MASTER_NETDEV) |
410 | 414 |
|
415 |
def GetMasterNetmask(self): |
|
416 |
"""Get the netdev to which we'll add the master ip. |
|
417 |
|
|
418 |
""" |
|
419 |
return self._ReadFile(constants.SS_MASTER_NETMASK) |
|
420 |
|
|
411 | 421 |
def GetMasterNode(self): |
412 | 422 |
"""Get the hostname of the master node for this cluster. |
413 | 423 |
|
Also available in: Unified diff