2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #187 from whowutwut/predictable_nic

Fix for xcat-core/issues/177 master branch, predictable nic names
This commit is contained in:
Xiaopeng Wang 2015-09-18 08:38:47 +08:00
commit 06ff2d1d13

View File

@ -315,7 +315,7 @@ do
continue
fi
fi
if [ `echo $key | grep -E 'e(n|th|m)[0-9a-z]+'` ];then
if [ `echo $key | grep -E 'e(n|th|m)[0-9a-zA-Z]+'` ];then
str_nic_type="ethernet"
elif [ `echo $key | grep -E 'ib[0-9]+'` ];then
str_nic_type="infiniband"