From af74d4fa22eb8b024d04c03512c45ce5c8eaf26c Mon Sep 17 00:00:00 2001 From: jjhua Date: Thu, 16 Aug 2012 07:51:44 +0000 Subject: [PATCH] fix bug 3558059. For Network controller: Mellanox Technologies MT27500 Family [ConnectX-3], there is not a keyword like InfiniBand, add Mellanox as the keyword; in mellanox ofed 4.0.x, it doesn't up the ib0/ib1 interfaces by default, so I update the configiba scripts. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13527 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/ib/scripts/configiba.1port | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/ib/scripts/configiba.1port b/xCAT-server/share/xcat/ib/scripts/configiba.1port index d115fa683..9f991dd4c 100644 --- a/xCAT-server/share/xcat/ib/scripts/configiba.1port +++ b/xCAT-server/share/xcat/ib/scripts/configiba.1port @@ -57,7 +57,7 @@ fi if [ $PLTFRM == "Linux" ] then - ib_number=`lspci | grep -i InfiniBand | wc -l` + ib_number=`lspci | grep -iE "(InfiniBand|Mellanox)" | wc -l` #loop_number=$[ $ib_number * 2 ] loop_number=$ib_number @@ -115,7 +115,7 @@ do else hostname="$HOST-$nic" fi - + `ifconfig $nic up` if [ $PLTFRM == "Linux" ] then ip=`ping -c 3 -I ib$num $hostname | grep "data" | sed 's/.* (\([0-9.]*\)).*/\1/' | uniq 2>&1`