Merge "Define constant instead of "https""
[vfc/nfvo/driver/vnfm/svnfm.git] / zte / vmanager / docker / instance_config.sh
1 #!/bin/bash
2
3 MSB_IP=`echo $MSB_ADDR | cut -d: -f 1`
4 MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
5
6 if [ $MSB_IP ]; then
7     sed -i "s|MSB_SERVICE_IP.*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/driver/pub/config/config.py
8 fi
9
10 if [ $MSB_PORT ]; then
11     sed -i "s|MSB_SERVICE_PORT.*|MSB_SERVICE_PORT = '$MSB_PORT'|" vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/driver/pub/config/config.py
12 fi
13
14 if [ $SERVICE_IP ]; then
15     sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/driver/pub/config/config.py
16 fi
17
18 cat vfc/nfvo/driver/vnfm/svnfm/zte/vmanager/driver/pub/config/config.py