Revision 868a98ca lib/config.py
b/lib/config.py | ||
---|---|---|
827 | 827 |
""" |
828 | 828 |
return self._config_data.cluster.default_iallocator |
829 | 829 |
|
830 |
@locking.ssynchronized(_config_lock, shared=1) |
|
831 |
def GetPrimaryIPFamily(self): |
|
832 |
"""Get cluster primary ip family. |
|
833 |
|
|
834 |
@return: primary ip family |
|
835 |
|
|
836 |
""" |
|
837 |
return self._config_data.cluster.primary_ip_family |
|
838 |
|
|
830 | 839 |
@locking.ssynchronized(_config_lock) |
831 | 840 |
def AddInstance(self, instance, ec_id): |
832 | 841 |
"""Add an instance to the config. |
... | ... | |
1407 | 1416 |
constants.SS_NODE_SECONDARY_IPS: node_snd_ips_data, |
1408 | 1417 |
constants.SS_OFFLINE_NODES: off_data, |
1409 | 1418 |
constants.SS_ONLINE_NODES: on_data, |
1419 |
constants.SS_PRIMARY_IP_FAMILY: str(cluster.primary_ip_family), |
|
1410 | 1420 |
constants.SS_INSTANCE_LIST: instance_data, |
1411 | 1421 |
constants.SS_RELEASE_VERSION: constants.RELEASE_VERSION, |
1412 | 1422 |
constants.SS_HYPERVISOR_LIST: hypervisor_list, |
Also available in: Unified diff