Fix the bug of cli command error when onboard ns 08/95208/1
authoryangyan <yangyanyj@chinamobile.com>
Mon, 9 Sep 2019 07:32:43 +0000 (15:32 +0800)
committeryangyan <yangyanyj@chinamobile.com>
Mon, 9 Sep 2019 07:32:48 +0000 (15:32 +0800)
Change-Id: I832a1cbbbf8b882089f941033fdc2acefce7e387
Issue-ID: INT-1239
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
test/hpa_automation/tosca/hpa_automation.py
test/hpa_automation/tosca/vcpe_vgw_config.json

index 68f8487..d542c20 100755 (executable)
@@ -385,7 +385,8 @@ def onboard_vnf(parameters):
     return vnf_onboard_outputs
 
 def onboard_ns(parameters):
-    ns_onboard_string = 'oclip vfc-catalog-onboard-ns -c {}'.format(parameters["ns-csar-id"])
+    ns_onboard_string = 'oclip vfc-catalog-onboard-ns -m {} -c {}'.format(parameters["ns"]["url"],
+                                                                          parameters["ns"]["csar-id"])
     ns_onboard_out = (os.popen(ns_onboard_string)).read()
     return ns_onboard_out
 
index 989734f..d4bcef9 100755 (executable)
        }
     },
     "ns":{
+        "url": "http://msb-iag:80",
         "csar-id": "You need change it",
        "key": "key1",
        "value": "value1",