aboutsummaryrefslogtreecommitdiffstats
path: root/plans/vfc-nfvo-wfengine/sanity-check
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/vfc-nfvo-wfengine/sanity-check
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/vfc-nfvo-wfengine/sanity-check')
-rw-r--r--plans/vfc-nfvo-wfengine/sanity-check/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plans/vfc-nfvo-wfengine/sanity-check/setup.sh b/plans/vfc-nfvo-wfengine/sanity-check/setup.sh
index e7c755fa..387ccf87 100644
--- a/plans/vfc-nfvo-wfengine/sanity-check/setup.sh
+++ b/plans/vfc-nfvo-wfengine/sanity-check/setup.sh
@@ -49,7 +49,7 @@ IMAGE="wfengine-activiti"
IMAGE_ACTIVITI_NAME="${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/${IMAGE}"
#get current host IP addres
-SERVICE_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $NF}')
+SERVICE_IP=$(ip route get 8.8.8.8 | awk '/8.8.8.8/ {print $7}')
# start wfengine-activiti
# docker run -d --name vfc_wfengine_activiti -p 8804:8080 -e SERVICE_IP=$SERVICE_IP -e SERVICE_PORT=8804 -e OPENPALETTE_MSB_IP=${MSB_IAG_IP} -e OPENPALETTE_MSB_PORT=80 ${IMAGE_ACTIVITI_NAME}