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
1 changed files with 22 additions and 8 deletions

View File

@ -420,14 +420,28 @@ class vmmConnection(vmmGObject):
else:
rest = "localhost"
if scheme == "qemu":
hv = "QEMU"
if active and self.is_kvm_supported():
hv += "/KVM"
elif scheme in ('esx', 'gsx'):
hv = scheme.upper()
else:
hv = scheme.capitalize()
pretty_map = {
"esx" : "ESX",
"gsx" : "GSX",
"libxl" : "libxl",
"lxc" : "LXC",
"openvz" : "OpenVZ",
"phyp" : "phyp",
"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 transport: