Package ganeti :: Module query :: Class GroupQueryData
[hide private]
[frames] | no frames]

Class GroupQueryData

source code

Data container for node group data queries.

Instance Methods [hide private]
 
__init__(self, groups, group_to_nodes, group_to_instances)
Initializes this class.
source code
 
__iter__(self)
Iterate over all node groups.
source code
Method Details [hide private]

__init__(self, groups, group_to_nodes, group_to_instances)
(Constructor)

source code 

Initializes this class.

Parameters:
  • groups - List of node group objects
  • group_to_nodes (dict; group UUID as key) - Per-group list of nodes
  • group_to_instances (dict; group UUID as key) - Per-group list of (primary) instances