From e63a17a7c8038b20344e67a3ecc4daaa92c1fbdc Mon Sep 17 00:00:00 2001 From: hangliu1 Date: Sun, 24 Apr 2022 05:18:15 -0400 Subject: [PATCH] config tool:Fix tap name filter error when tap name is number, it will lead to failure of adding tap dev, fix it. Tracked-On: #7351 Signed-off-by: hangliu1 --- misc/config_tools/launch_config/launch_script_template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/launch_config/launch_script_template.sh b/misc/config_tools/launch_config/launch_script_template.sh index e948031c4..b4a9ca486 100644 --- a/misc/config_tools/launch_config/launch_script_template.sh +++ b/misc/config_tools/launch_config/launch_script_template.sh @@ -52,7 +52,7 @@ function unbind_device() { function create_tap() { # create a unique tap device for each VM tap=$1 - tap_exist=$(ip a | grep "$tap" | awk '{print $1}') + tap_exist=$(ip a | grep "$tap: " | awk '{print $1}') if [ "$tap_exist"x != "x" ]; then echo "$tap TAP device already available, reusing it." else