Revision 48297fa2 lib/hypervisor/__init__.py
b/lib/hypervisor/__init__.py | ||
---|---|---|
29 | 29 |
from ganeti.hypervisor import hv_fake |
30 | 30 |
from ganeti.hypervisor import hv_xen |
31 | 31 |
from ganeti.hypervisor import hv_kvm |
32 |
from ganeti.hypervisor import hv_chroot |
|
32 | 33 |
|
33 | 34 |
|
34 | 35 |
_HYPERVISOR_MAP = { |
35 |
constants.HT_XEN_PVM: hv_xen.XenPvmHypervisor, |
|
36 |
constants.HT_XEN_HVM: hv_xen.XenHvmHypervisor, |
|
37 |
constants.HT_FAKE: hv_fake.FakeHypervisor, |
|
38 |
constants.HT_KVM: hv_kvm.KVMHypervisor, |
|
39 |
} |
|
36 |
constants.HT_XEN_PVM: hv_xen.XenPvmHypervisor, |
|
37 |
constants.HT_XEN_HVM: hv_xen.XenHvmHypervisor, |
|
38 |
constants.HT_FAKE: hv_fake.FakeHypervisor, |
|
39 |
constants.HT_KVM: hv_kvm.KVMHypervisor, |
|
40 |
constants.HT_CHROOT: hv_chroot.ChrootManager, |
|
41 |
} |
|
40 | 42 |
|
41 | 43 |
|
42 | 44 |
def GetHypervisor(ht_kind): |
Also available in: Unified diff