Package ganeti :: Module objects :: Class ConfigData
[hide private]
[frames] | no frames]

Class ConfigData

source code


Top-level config object.

Instance Methods [hide private]
 
ToDict(self)
Custom function for top-level config data.
source code
boolean
HasAnyDiskOfType(self, dev_type)
Check if in there is at disk of the given type in the configuration.
source code
 
UpgradeConfig(self)
Fill defaults for missing configuration values.
source code

Inherited from ConfigObject: Copy, __getattr__, __getstate__, __init__, __repr__, __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
FromDict(cls, val)
Custom function for top-level config data
source code

Inherited from ConfigObject (private): _all_slots

Static Methods [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

ToDict(self)

source code 

Custom function for top-level config data.

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

Overrides: ConfigObject.ToDict

FromDict(cls, val)
Class Method

source code 

Custom function for top-level config data

Overrides: ConfigObject.FromDict

HasAnyDiskOfType(self, dev_type)

source code 

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

Parameters:
Returns: boolean
boolean indicating if a disk of the given type was found or not

UpgradeConfig(self)

source code 

Fill defaults for missing configuration values.

Overrides: ConfigObject.UpgradeConfig