diff options
author | 2020-03-23 12:57:08 +0100 | |
---|---|---|
committer | 2020-03-23 12:57:08 +0100 | |
commit | 5f7b64b22b44e0866842b778760cf5ccfc23201b (patch) | |
tree | f14754e50a2dd61e21212951a3007a1d27e086de /plans/usecases/5G-bulkpm | |
parent | 940b6d936da7a3be6cfd5bd903ef40c6da9592ae (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/usecases/5G-bulkpm')
-rw-r--r-- | plans/usecases/5G-bulkpm/setup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plans/usecases/5G-bulkpm/setup.sh b/plans/usecases/5G-bulkpm/setup.sh index 9fbd2ef9..e0d7b801 100644 --- a/plans/usecases/5G-bulkpm/setup.sh +++ b/plans/usecases/5G-bulkpm/setup.sh @@ -71,7 +71,7 @@ docker kill cbs sleep 10 CONSUL_IP=$(docker inspect '--format={{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' consul ) sed -i -e '/CONSUL_HOST:/ s/:.*/: '$CONSUL_IP'/' docker-compose.yml -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}') DMAAP_MR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $DMAAP) sed -i -e '/DMAAPHOST:/ s/:.*/: '$DMAAP_MR_IP'/' docker-compose.yml MARIADB=$(docker inspect '--format={{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mariadb ) |