2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #4434 from mattaezell/confignetwork_multibond

Fix confignetwork bond nic_type detection with multiple bonds
This commit is contained in:
Yuan Bai 2017-12-05 15:31:28 +08:00 committed by GitHub
commit 9c946c851d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,6 +366,7 @@ function sort_nics_device_order {
#find nicdevice type as base_nic_type
base_nic_dev=`echo "$nics_list" |sed -n "${num}p"|awk '{print $2}'`
if echo "$base_nic_dev"|grep "@" >/dev/null; then
temp_base_nic_type_one=''
for i in `echo "$base_nic_dev" |sed 's/@/ /g'`
do
temp_base_nic_type=`find_nic_type "$i" | $utolcmd`