1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

if nic type is default then make it virtio

This commit is contained in:
catborise 2024-02-28 08:16:44 +03:00
parent d8fe9c2f64
commit 765b759953
2 changed files with 23 additions and 0 deletions

View file

@ -1853,6 +1853,9 @@ def create_instance(request, compute_id, arch, machine):
machine = "q35"
firmware["secure"] = "yes"
if data["net_model"] == "default":
data["net_model"] = "virtio"
uuid = util.randomUUID()
try:
conn.create_instance(