mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-31 10:06:39 +00:00
Return the correct mask by matching the netname exactly
This commit is contained in:
parent
1f85105db2
commit
5df378fff4
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user