summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-29 13:08:48 +0200
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-29 13:08:48 +0200
commitce832d3280d73800bae9c88f8783fba0790cbd16 (patch)
treea0cdcd1c595e9d83570187d03f2e69e31aa50d89
parentd99ea0dcb2ab627384e13c65ed67e544698a45a4 (diff)
downloadlava-sessions-ce832d3280d73800bae9c88f8783fba0790cbd16.tar.gz
bug ifix on iperf scripts
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rwxr-xr-xscripts/run-iperf-udp-server.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/run-iperf-udp-server.sh b/scripts/run-iperf-udp-server.sh
index 1743332..673c425 100755
--- a/scripts/run-iperf-udp-server.sh
+++ b/scripts/run-iperf-udp-server.sh
@@ -1,7 +1,9 @@
#!/bin/bash
+. scripts/lava-common.sh
+
iface=$(find_vland_iface)
iperf3 -s -D
-ipaddr=$(ip -4 addr show dev enp8s0f4 | awk '/inet/ {print $2}')
+ipaddr=$(ip -4 addr show dev $iface | awk '/inet/ {print $2}')
lava-send iperf3-server-ready iperf_ip="$ipaddr"