mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +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
|
||||
for net in virt_io['network'][vmid]:
|
||||
if net:
|
||||
net_name = net
|
||||
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)
|
||||
print(" -s {},virtio-net,tap_{} \\".format(launch_cfg_lib.virtual_dev_slot("virtio-net{}".format(net)), net), file=config)
|
||||
|
||||
# virtio-console set, the value type is a string
|
||||
if virt_io['console'][vmid]:
|
||||
|
Loading…
Reference in New Issue
Block a user