Package ganeti :: Module ssconf :: Class SimpleConfigReader
[hide private]
[frames] | no frames]

Class SimpleConfigReader

source code


Simple class to read configuration file.

Instance Methods [hide private]
 
__init__(self, file_name=constants.CLUSTER_CONF_FILE)
Initializes this class.
source code
 
GetClusterName(self) source code
 
GetHostKey(self) source code
 
GetMasterNode(self) source code
 
GetMasterIP(self) source code
 
GetMasterNetdev(self) source code
 
GetFileStorageDir(self) source code
 
GetHypervisorType(self) source code
 
GetNodeList(self) source code

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

Class Methods [hide private]
 
FromDict(cls, val, cfg_file=constants.CLUSTER_CONF_FILE)
Alternative construction from a dictionary.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, file_name=constants.CLUSTER_CONF_FILE)
(Constructor)

source code 

Initializes this class.

Parameters:
  • file_name (string) - Configuration file path
Overrides: object.__init__