Package archipel :: Module archipelLibvirtEntity :: Class TNArchipelLibvirtEntity
[hide private]
[frames] | no frames]

Class TNArchipelLibvirtEntity

source code

object --+
         |
        TNArchipelLibvirtEntity

Instance Methods [hide private]
 
__init__(self, configuration)
Initialize the TNArchipelLibvirtEntity.
source code
 
connect_libvirt(self)
Connect to the libvirt according to parameters in configuration.
source code
 
libvirt_credential_callback(self, creds, cbdata)
Manage the libvirt credentials.
source code
string
current_hypervisor(self)
Return the result of libvirt getType() function.
source code
boolean
is_hypervisor(self, names)
Return True if hypervisor is one of the given names (tupple).
source code
 
libvirt_version(self)
Return the version of the libvirt
source code
 
driver_version(self)
Return the version of the libvirt driver
source code
 
libvirt_failure(self, failure)
sets entities to dnd status if lose connection to libvirt
source code
 
check_libvirt_connection(self)
check libvirt connection in each execution of main loop
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, configuration)
(Constructor)

source code 

Initialize the TNArchipelLibvirtEntity.

Overrides: object.__init__

current_hypervisor(self)

source code 

Return the result of libvirt getType() function.

Returns: string
uppercased string name of the current hypervisor

is_hypervisor(self, names)

source code 

Return True if hypervisor is one of the given names (tupple).

Parameters:
  • names (tupple) - tupple containing names
Returns: boolean
True of False

libvirt_failure(self, failure)

source code 

sets entities to dnd status if lose connection to libvirt

Parameters:
  • failure (Bool) - true if libvirt connection failed and false if we've recovered the connection