diff options
-rwxr-xr-x | netperf-defs/netperf-client-napi.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/netperf-defs/netperf-client-napi.sh b/netperf-defs/netperf-client-napi.sh index 83ecba8..2a13544 100755 --- a/netperf-defs/netperf-client-napi.sh +++ b/netperf-defs/netperf-client-napi.sh @@ -2,11 +2,12 @@ set -x -cat /tmp/lava_multi_node_network_cache.txt - local_ip=$(ifconfig|grep "inet addr"|grep -v "127.0.0.1"|cut -d: -f2|cut -d' ' -f1) -for line in `lava-group | awk '{print $1}'` ; do +# allow multiple clients testing one server +# relies on the name of the role for the server containing server +# could be shortened if there was only one server in the JSON +for line in `lava-group | grep server | awk '{print $1}'` ; do echo $line # get the ipv4 for this device STR=`lava-network query $line ipv4` |