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:
parent
b47ec2e8f9
commit
7d1cfb69b0
6 changed files with 50 additions and 6 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue