Fix the gvnfm problem of registering MSB with HTTPS 61/100461/2
authoryangyan <yangyanyj@chinamobile.com>
Sun, 19 Jan 2020 09:23:00 +0000 (17:23 +0800)
committerYan Yang <yangyanyj@chinamobile.com>
Sun, 19 Jan 2020 09:25:39 +0000 (09:25 +0000)
Change-Id: I16d62231f00421d40d179fdc94fa226b700631f0
Issue-ID: VFC-1502
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
gvnfmadapter/driver/pub/config/config.py
gvnfmadapter/driver/pub/utils/restcall.py

index 229b837..ab1d024 100644 (file)
@@ -14,7 +14,7 @@
 
 # [MSB]
 MSB_SERVICE_IP = '127.0.0.1'
-MSB_SERVICE_PORT = '80'
+MSB_SERVICE_PORT = '443'
 
 # [MDC]
 SERVICE_NAME = "gvnfmdriver"
index 4b1aad6..1239545 100644 (file)
@@ -81,7 +81,7 @@ def call_req(base_url, user, passwd, auth_type, resource, method, content=''):
 
 
 def req_by_msb(resource, method, content=''):
-    base_url = "http://%s:%s/" % (MSB_SERVICE_IP, MSB_SERVICE_PORT)
+    base_url = "https://%s:%s/" % (MSB_SERVICE_IP, MSB_SERVICE_PORT)
     return call_req(base_url, "", "", rest_no_auth, resource, method, content)