Package ganeti :: Package hypervisor
[hide private]
[frames] | no frames]

Package hypervisor

source code

Virtualization interface abstraction

Submodules [hide private]

Functions [hide private]
 
GetHypervisorClass(ht_kind)
Return a Hypervisor class.
source code
 
GetHypervisor(ht_kind)
Return a Hypervisor instance.
source code
Variables [hide private]
  _HYPERVISOR_MAP = {constants.HT_XEN_PVM: hv_xen.XenPvmHypervis...

Imports: constants, errors, hv_fake, hv_xen, hv_kvm, hv_chroot, hv_lxc


Function Details [hide private]

GetHypervisorClass(ht_kind)

source code 

Return a Hypervisor class.

This function returns the hypervisor class corresponding to the given hypervisor name.

Parameters:
  • ht_kind (string) - The requested hypervisor type

GetHypervisor(ht_kind)

source code 

Return a Hypervisor instance.

This is a wrapper over GetHypervisorClass which returns an instance of the class.

Parameters:
  • ht_kind (string) - The requested hypervisor type

Variables Details [hide private]

_HYPERVISOR_MAP

Value:
{constants.HT_XEN_PVM: hv_xen.XenPvmHypervisor, constants.HT_XEN_HVM: \
hv_xen.XenHvmHypervisor, constants.HT_FAKE: hv_fake.FakeHypervisor, co\
nstants.HT_KVM: hv_kvm.KVMHypervisor, constants.HT_CHROOT: hv_chroot.C\
hrootManager, constants.HT_LXC: hv_lxc.LXCHypervisor,}