Whamcloud - gitweb
LU-17498 tests: show NIDs in node summary page
[fs/lustre-release.git] / lustre / tests / yaml.sh
index 8440996..3319fda 100644 (file)
@@ -127,8 +127,12 @@ cat <<EOF
     architecture: $(uname -m)
     networks:
 EOF
-    for nw in $(lctl list_nids | grep -v @lo | cut -f 2 -d '@' | uniq); do
-        printf "        - $nw\n"
+    for nid in $(lctl list_nids | grep -v @lo ); do
+        printf "        - ${nid##*@}\n"
+    done | sort -u
+    echo "    nids:"
+    for nid in $(lctl list_nids | grep -v @lo ); do
+        printf "        - $nid\n"
     done
 }