aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2/testsuites
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-23 12:57:08 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2020-03-23 12:57:08 +0100
commit5f7b64b22b44e0866842b778760cf5ccfc23201b (patch)
treef14754e50a2dd61e21212951a3007a1d27e086de /plans/dcaegen2/testsuites
parent940b6d936da7a3be6cfd5bd903ef40c6da9592ae (diff)
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>
Diffstat (limited to 'plans/dcaegen2/testsuites')
-rwxr-xr-xplans/dcaegen2/testsuites/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plans/dcaegen2/testsuites/setup.sh b/plans/dcaegen2/testsuites/setup.sh
index 781e205f..26585c20 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