From 5df378fff4f353c5091580d61ba728d5a11f5f1c Mon Sep 17 00:00:00 2001 From: Wai Yee Wong Date: Thu, 15 Jul 2021 20:12:25 -0400 Subject: [PATCH] Return the correct mask by matching the netname exactly --- xCAT/postscripts/nicutils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/postscripts/nicutils.sh b/xCAT/postscripts/nicutils.sh index c59d39592..35324bba8 100755 --- a/xCAT/postscripts/nicutils.sh +++ b/xCAT/postscripts/nicutils.sh @@ -397,7 +397,7 @@ function get_network_attr { while [ $index -le $NETWORKS_LINES ] do eval netline=\$NETWORKS_LINE$index - echo "$netline" | grep -sq ".*netname=$netname" && break; + echo "$netline" | grep -sq ".*netname=$netname||" && break; ((index+=1)) done