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

Class NetworkQueryData

source code

Data container for network data queries.

Instance Methods [hide private]
 
__init__(self, networks, network_to_groups, network_to_instances, stats)
Initializes this class.
source code
 
__iter__(self)
Iterate over all networks.
source code
Method Details [hide private]

__init__(self, networks, network_to_groups, network_to_instances, stats)
(Constructor)

source code 

Initializes this class.

Parameters:
  • networks - List of network objects
  • network_to_groups (dict; network UUID as key) - Per-network list of groups
  • network_to_instances (dict; network UUID as key) - Per-network list of instances
  • stats (dict; network UUID as key) - Per-network usage statistics