diff options
Diffstat (limited to 'docker/instance_config.sh')
-rwxr-xr-x | docker/instance_config.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/instance_config.sh b/docker/instance_config.sh index 3f566453..3a9f3a03 100755 --- a/docker/instance_config.sh +++ b/docker/instance_config.sh @@ -3,6 +3,9 @@ MSB_IP=`echo $MSB_ADDR | cut -d: -f 1` MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2` +MR_IP=`echo $MR_ADDR | cut -d: -f 1` +MR_PORT=`echo $MR_ADDR | cut -d: -f 2` + if [ $MSB_IP ]; then sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py fi @@ -11,6 +14,14 @@ if [ $MSB_PORT ]; then sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py fi +if [ $MR_IP ]; then + sed -i "s|MR_IP.*|MR_IP = '$MR_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py +fi + +if [ $MR_PORT ]; then + sed -i "s|MR_PORT.*|MR_PORT = '$MR_PORT'|" vfc/nfvo/lcm/lcm/pub/config/config.py +fi + if [ $SERVICE_IP ]; then sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/nfvo/lcm/lcm/pub/config/config.py fi |