diff options
Diffstat (limited to 'nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh')
-rwxr-xr-x | nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh index 94f8d5bc..1631cc59 100755 --- a/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh +++ b/nokia/vnfmdriver/vfcadaptorservice/docker/instance-config.sh @@ -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 |