Fix getting local ip address in CSIT setup scripts
Assumption that last field in routing entry is the
local src address is no longer valide in the latest
iproute2 releases as it adds UID information.
The correct way is to get the 7th field, not the last.
Change-Id: Id2289fbf9b916ccab3ac7949d4f8118ef0571935
Issue-ID: INT-1497
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
diff --git a/plans/dcaegen2/testsuites/setup.sh b/plans/dcaegen2/testsuites/setup.sh
index 781e205..26585c2 100755
--- a/plans/dcaegen2/testsuites/setup.sh
+++ b/plans/dcaegen2/testsuites/setup.sh
@@ -19,7 +19,7 @@
#get current host IP addres
-HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
+HOST_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $7}')
VESC_IMAGE=nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.ves.vescollector:latest