Whamcloud - gitweb
b=16153
authorgrev <grev>
Tue, 24 Jun 2008 20:57:53 +0000 (20:57 +0000)
committergrev <grev>
Tue, 24 Jun 2008 20:57:53 +0000 (20:57 +0000)
i=Johann
h2o2ib t-f fn

lustre/tests/test-framework.sh

index 73b3835..16ea61a 100644 (file)
@@ -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