connection: Pretty print more connection HVs

This commit is contained in:
Cole Robinson 2011-06-07 19:41:02 -04:00
parent d47ad089fd
commit 064337ecf3

View File

@ -420,14 +420,28 @@ class vmmConnection(vmmGObject):
else: else:
rest = "localhost" rest = "localhost"
if scheme == "qemu": pretty_map = {
hv = "QEMU" "esx" : "ESX",
if active and self.is_kvm_supported(): "gsx" : "GSX",
hv += "/KVM" "libxl" : "libxl",
elif scheme in ('esx', 'gsx'): "lxc" : "LXC",
hv = scheme.upper() "openvz" : "OpenVZ",
else: "phyp" : "phyp",
hv = scheme.capitalize() "qemu" : "QEMU",
"test" : "test",
"uml" : "UML",
"vbox" : "VBox",
"vmware" : "VMWare",
"xen" : "xen",
"xenapi" : "XenAPI",
}
hv = scheme
if scheme in pretty_map:
hv = pretty_map[scheme]
if hv == "QEMU" and active and self.is_kvm_supported():
hv += "/KVM"
if show_trans: if show_trans:
if transport: if transport: