Package ganeti :: Package confd :: Module querylib :: Class InstanceIpToNodePrimaryIpQuery
[hide private]
[frames] | no frames]

Class InstanceIpToNodePrimaryIpQuery

source code

A query for the location of one or more instance's ips.

Instance Methods [hide private]
(integer, ...)
Exec(self, query)
InstanceIpToNodePrimaryIpQuery main execution.
source code

Inherited from ConfdQuery: __init__

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]

Exec(self, query)

source code 

InstanceIpToNodePrimaryIpQuery main execution.

  • query (string or dict) - instance ip or dict containing: constants.CONFD_REQQ_LINK: nic link (optional) constants.CONFD_REQQ_IPLIST: list of ips constants.CONFD_REQQ_IP: single ip (one IP type request is mandatory)
Returns: (integer, ...)
((status, answer) or (success, [(status, answer)...])
Overrides: ConfdQuery.Exec