From: grev Date: Tue, 24 Jun 2008 20:57:53 +0000 (+0000) Subject: b=16153 X-Git-Tag: v1_8_0_110~446 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=138d559ca2d88aa1a07e2d302095f0a1232efcb4;p=fs%2Flustre-release.git b=16153 i=Johann h2o2ib t-f fn --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 73b3835..16ea61a 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -612,6 +612,12 @@ h2gm () { fi } +h2name_or_ip() { + if [ "$1" = "client" -o "$1" = "'*'" ]; then echo \'*\'; else + echo $1"@$2" + fi +} + h2ptl() { if [ "$1" = "client" -o "$1" = "'*'" ]; then echo \'*\'; else ID=`xtprocadmin -n $1 2>/dev/null | egrep -v 'NID' | awk '{print $1}'` @@ -651,6 +657,11 @@ h2openib() { } declare -fx h2openib +h2o2ib() { + h2name_or_ip "$1" "o2ib" +} +declare -fx h2o2ib + facet_host() { local facet=$1 varname=${facet}_HOST