mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
acrn-config: remove uncessary split for 'virtio-net'
Split the input message for 'virtio-net' would discard extra message from user input, this is not expected for 'virtio-net' setting. Tracked-On: #4298 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
parent
ce35a00518
commit
77c3ce06e1
@ -483,10 +483,7 @@ def virtio_args_set(dm, virt_io, vmid, config):
|
|||||||
# virtio-net set, the value type is a list
|
# virtio-net set, the value type is a list
|
||||||
for net in virt_io['network'][vmid]:
|
for net in virt_io['network'][vmid]:
|
||||||
if net:
|
if net:
|
||||||
net_name = net
|
print(" -s {},virtio-net,tap_{} \\".format(launch_cfg_lib.virtual_dev_slot("virtio-net{}".format(net)), net), file=config)
|
||||||
if ',' in net:
|
|
||||||
net_name = net.split(',')[0]
|
|
||||||
print(" -s {},virtio-net,tap_{} \\".format(launch_cfg_lib.virtual_dev_slot("virtio-net{}".format(net)), net_name), file=config)
|
|
||||||
|
|
||||||
# virtio-console set, the value type is a string
|
# virtio-console set, the value type is a string
|
||||||
if virt_io['console'][vmid]:
|
if virt_io['console'][vmid]:
|
||||||
|
Loading…
Reference in New Issue
Block a user