mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
connection: Pretty print more connection HVs
This commit is contained in:
parent
d47ad089fd
commit
064337ecf3
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user