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

network interface model selection added for new instance and new interface

This commit is contained in:
cserma 2023-08-15 15:35:23 +03:00 committed by catborise
parent b47ec2e8f9
commit 7d1cfb69b0
6 changed files with 50 additions and 6 deletions

View file

@ -161,6 +161,7 @@ class wvmCreate(wvmConnect):
graphics,
virtio,
listener_addr,
net_model="virtio",
video="vga",
console_pass="random",
mac=None,
@ -316,7 +317,7 @@ class wvmCreate(wvmConnect):
if nwfilter:
xml += f"""<filterref filter='{nwfilter}'/>"""
if virtio:
xml += """<model type='virtio'/>"""
xml += f"""<model type='{net_model}'/>"""
xml += """</interface>"""
if console_pass == "random":