diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-02-28 19:57:35 +0800 |
---|---|---|
committer | Yan Yang <yangyanyj@chinamobile.com> | 2020-02-28 11:58:37 +0000 |
commit | 5ba475b6bdbc322599800272adbe0995670f3efc (patch) | |
tree | dd0d76c4c06ee35c7f3feadb3a89486bbc9306c4 /gvnfmadapter/docker/instance_config.sh | |
parent | 20724692f07eb00b51cc215b79f069800a450bb2 (diff) |
Change the MSB registration switch to the environment variable acquisition mode and fix typo error
Change-Id: Ica6f3b07beaaefdd9d2f1988b325fb0c46e537ee
Issue-ID: VFC-1601
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'gvnfmadapter/docker/instance_config.sh')
-rwxr-xr-x | gvnfmadapter/docker/instance_config.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gvnfmadapter/docker/instance_config.sh b/gvnfmadapter/docker/instance_config.sh index 5debe45..8fa1249 100755 --- a/gvnfmadapter/docker/instance_config.sh +++ b/gvnfmadapter/docker/instance_config.sh @@ -4,6 +4,10 @@ MSB_PROTO=`echo $MSB_PROTO` MSB_IP=`echo $MSB_ADDR | cut -d: -f 1` MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2` +if [ $REG_TO_MSB_WHEN_START ]; then + sed -i "s|REG_TO_MSB_WHEN_START = .*|REG_TO_MSB_WHEN_START = '$REG_TO_MSB_WHEN_START'|" vfc/nfvo/driver/vnfm/gvnfm/gvnfmadapter/driver/pub/config/config.py +fi + if [ $MSB_IP ]; then sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/driver/vnfm/gvnfm/gvnfmadapter/driver/pub/config/config.py fi |