config_tools: remove the assume of virtio-net device name

Since PR #7185 has removed the assume of virtio-net device name,
we also remove it in the launch script generation logic.

Tracked-On: #6690
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Kunhui-Li 2022-03-14 15:54:34 +08:00 committed by acrnsi-robot
parent b9431b8da4
commit 95a9c05a25

View File

@ -128,7 +128,7 @@ function add_virtual_device() {
if [ "${kind}" = "virtio-net" ]; then
# Create the tap device
tap_conf=${options%,*}
create_tap "tap_${tap_conf#tap=}" >> /dev/stderr
create_tap "${tap_conf#tap=}" >> /dev/stderr
fi
echo -n "-s ${slot},${kind}"