connect: Add LXC to 'open connection' dialog

This commit is contained in:
Cole Robinson 2011-06-21 17:19:55 -04:00
parent 9427f75416
commit e9f365f11d
2 changed files with 6 additions and 2 deletions

View File

@ -30,6 +30,7 @@ from virtManager.baseclass import vmmGObjectUI
HV_XEN = 0 HV_XEN = 0
HV_QEMU = 1 HV_QEMU = 1
HV_LXC = 2
CONN_SSH = 0 CONN_SSH = 0
CONN_TCP = 1 CONN_TCP = 1
@ -293,8 +294,10 @@ class vmmConnect(vmmGObjectUI):
hvstr = "" hvstr = ""
if hv == HV_XEN: if hv == HV_XEN:
hvstr = "xen" hvstr = "xen"
else: elif hv == HV_QEMU:
hvstr = "qemu" hvstr = "qemu"
else:
hvstr = "lxc"
addrstr = "" addrstr = ""
if user: if user:

View File

@ -24,7 +24,8 @@
<widget class="GtkComboBox" id="hypervisor"> <widget class="GtkComboBox" id="hypervisor">
<property name="visible">True</property> <property name="visible">True</property>
<property name="items" translatable="yes">Xen <property name="items" translatable="yes">Xen
QEMU/KVM</property> QEMU/KVM
LXC (Linux Containers)</property>
<accessibility> <accessibility>
<atkproperty name="AtkObject::accessible-name" translatable="yes">Hypervisor Select</atkproperty> <atkproperty name="AtkObject::accessible-name" translatable="yes">Hypervisor Select</atkproperty>
</accessibility> </accessibility>