class documentation

class ConfigData(ConfigObject):

View In Hierarchy

Top-level config object.

Class Method FromDict Custom function for top-level config data
Method DisksOfType Check if in there is at disk of the given type in the configuration.
Method ToDict Custom function for top-level config data.
Method UpgradeConfig Fill defaults for missing configuration values.
Class Variable __slots__ Undocumented
Instance Variable filters Undocumented
Instance Variable networks Undocumented
Instance Variable nodegroups Undocumented
Method _UpgradeEnabledDiskTemplates Upgrade the cluster's enabled disk templates by inspecting the currently enabled and/or used disk templates.

Inherited from ConfigObject:

Method __getattr__ Undocumented
Method __repr__ Implement __repr__ for ConfigObjects.
Method __setstate__ Undocumented
Method Copy Makes a deep copy of the current object and its children.
Method Validate Validates the slots.

Inherited from ValidatedSlots (via ConfigObject):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Method __init__ Constructor for BaseOpCode.
@classmethod
def FromDict(cls, val):

Custom function for top-level config data

def DisksOfType(self, dev_type):

Check if in there is at disk of the given type in the configuration.

Parameters
dev_type:constants.DTS_BLOCKthe type to look for
Returns
list of disksall disks of the dev_type
def ToDict(self, _with_private=False):

Custom function for top-level config data.

This just replaces the list of nodes, instances, nodegroups, networks, disks and the cluster with standard python types.

def UpgradeConfig(self):

Fill defaults for missing configuration values.

__slots__ =

Undocumented

filters: dict =

Undocumented

networks: dict =

Undocumented

nodegroups: dict =

Undocumented

def _UpgradeEnabledDiskTemplates(self):

Upgrade the cluster's enabled disk templates by inspecting the currently enabled and/or used disk templates.