X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=nokia%2Fvnfmdriver%2Fvfcadaptorservice%2Fdocker%2Finstance-config.sh;h=1631cc591242599b608e3e3809bf99c833b95b79;hb=d3410fb5cc77b7d58b8d27351345fba09f968019;hp=ce9d31dbae312cbebf6fc3d723ccb3000411abd1;hpb=16e4b6bdec169b97015752958a94d3ed0ad8c02a;p=vfc%2Fnfvo%2Fdriver%2Fvnfm%2Fsvnfm.git diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh index ce9d31db..1631cc59 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright 2017 Huawei Technologies Co., Ltd. +# Copyright 2017, Nokia Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -16,7 +16,16 @@ # # Config MSB address MSB_IP=`echo $MSB_ADDR | cut -d: -f 1` -sed -i "s|127\.0\.0\.1|${MSB_IP}|" etc/conf/restclient.json +MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2` + +if [ $MSB_PORT ]; then + sed -i "s|127\.0\.0\.1|${MSB_IP}|" etc/conf/restclient.json +fi + +if [ $MSB_PORT ]; then + sed -i "s|80|${$MSB_PORT}|" etc/conf/restclient.json +fi + cat etc/conf/restclient.json # Set self IP