Modify the request by msb with https 47/101647/2
authoryangyan <yangyanyj@chinamobile.com>
Thu, 13 Feb 2020 02:56:59 +0000 (10:56 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Thu, 13 Feb 2020 03:09:20 +0000 (11:09 +0800)
Change-Id: Ifff96f74c11cc8407c9428f2342a81e5a1db8de4
Issue-ID: VFC-1602
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
docker/instance_config.sh
lcm/pub/config/config.py

index 70a3cc6..9b59331 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/bash
 
+MSB_PROTO=`echo $MSB_PROTO`
 MSB_IP=`echo $MSB_ADDR | cut -d: -f 1`
 MSB_PORT=`echo $MSB_ADDR | cut -d: -f 2`
 
@@ -12,6 +13,10 @@ 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/lcm/lcm/pub/config/config.py
 fi
 
+if [ $MSB_PROTO ]; then
+    sed -i "s|MSB_SERVICE_PROTOCOL = .*|MSB_SERVICE_PROTOCOL = '$MSB_PROTO'|" vfc/nfvo/lcm/lcm/pub/config/config.py
+fi
+
 if [ $MSB_IP ]; then
     sed -i "s|MSB_SERVICE_IP = .*|MSB_SERVICE_IP = '$MSB_IP'|" vfc/nfvo/lcm/lcm/pub/config/config.py
 fi
index f97f1c0..d453480 100644 (file)
 # limitations under the License.
 
 # [MSB]
+MSB_SERVICE_PROTOCOL = 'http'
 MSB_SERVICE_IP = '10.0.14.1'
-MSB_SERVICE_PORT = '30283'
-MSB_BASE_URL = "https://%s:%s" % (MSB_SERVICE_IP, MSB_SERVICE_PORT)
+MSB_SERVICE_PORT = '443'
+MSB_BASE_URL = "%s://%s:%s" % (MSB_SERVICE_PROTOCOL, MSB_SERVICE_IP, MSB_SERVICE_PORT)
 
 # [REDIS]
 REDIS_HOST = '127.0.0.1'