update pingall script to better guess which IPs are for the fabric.

Change-Id: I5855b8b9ee98785998f40b2253cd76634b9a74c6
diff --git a/roles/compute-node/files/fabric-pingall b/roles/compute-node/files/fabric-pingall
index d6de75c..681d57b 100755
--- a/roles/compute-node/files/fabric-pingall
+++ b/roles/compute-node/files/fabric-pingall
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-NODES="10.2.1.1 10.2.1.2 10.2.2.1 10.2.2.2 10.2.1.254 10.2.2.254"
+NODES="10.X.1.1 10.X.1.2 10.X.2.1 10.X.2.2 10.X.1.254 10.X.2.254 8.8.8.8"
 
 test -z $1 || NODES="$*"
 
@@ -21,6 +21,14 @@
 	FROM=$(ifconfig $USE_IFACE | grep "inet addr" | head -1 | awk '{print $2}' | cut -d: -f2)
 fi
 
+if [ "$FROM" != "none" ]; then
+    X=$(echo "$FROM" | cut -d. -f2)
+else
+    X='6'
+fi
+
+LIST=$(echo $LIST | sed -e "s/X/$X/g")
+
 echo "from $(hostname) ($FROM):"
 for ip in $LIST; do
 	case $ip in