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

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

Properties [hide private]

Inherited from object: __class__

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
Overrides: object.__init__