Package ClusterShell :: Module NodeUtils :: Class GroupResolverConfig
[hide private]
[frames] | no frames]

Class GroupResolverConfig

source code


GroupResolver class that is able to automatically setup its GroupSource's from a configuration file. This is the default resolver for NodeSet.

Instance Methods [hide private]
 
__init__(self, filenames, illegal_chars=None)
Initialize GroupResolverConfig from filenames.
source code
 
_parse_config(self, cfg_dirname)
parse config using relative dir cfg_dirname
source code
 
_sources_from_cfg(self, cfg, cfgdir)
Instantiate as many UpcallGroupSources needed from cfg object, cfgdir (CWD for callbacks) and cfg filename.
source code
 
_sources_from_yaml(self, filepath)
Load source(s) from YAML file.
source code

Inherited from GroupResolver: add_source, all_nodes, group_nodes, grouplist, has_node_groups, node_groups, set_verbosity, sources

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

Class Variables [hide private]
  SECTION_MAIN = 'Main'
Properties [hide private]

Inherited from GroupResolver: default_source_name

Inherited from object: __class__

Method Details [hide private]

__init__(self, filenames, illegal_chars=None)
(Constructor)

source code 

Initialize GroupResolverConfig from filenames. Only the first accessible config filename is loaded.

Overrides: object.__init__