Show 'virtio' net option for qemu guests, not just KVM

This commit is contained in:
Cole Robinson 2011-05-09 09:07:36 -04:00
parent c3f602db60
commit eeb0879d8f

View File

@ -232,9 +232,9 @@ def populate_netmodel_combo(vm, combo):
model.append([None, _("Hypervisor default")])
if vm.is_hvm():
mod_list = ["rtl8139", "ne2k_pci", "pcnet", "e1000"]
if vm.get_hv_type() == "kvm":
if vm.get_hv_type() in ["kvm", "qemu", "test"]:
mod_list.append("virtio")
if vm.get_hv_type() == "xen":
if vm.get_hv_type() in ["xen", "test"]:
mod_list.append("netfront")
mod_list.sort()