From 6a5ec681a93a0ddf55080f164187791ed92578be Mon Sep 17 00:00:00 2001 From: yangyan Date: Mon, 9 Sep 2019 15:32:43 +0800 Subject: Fix the bug of cli command error when onboard ns Change-Id: I832a1cbbbf8b882089f941033fdc2acefce7e387 Issue-ID: INT-1239 Signed-off-by: yangyan --- test/hpa_automation/tosca/hpa_automation.py | 3 ++- test/hpa_automation/tosca/vcpe_vgw_config.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/hpa_automation/tosca/hpa_automation.py b/test/hpa_automation/tosca/hpa_automation.py index 68f848763..d542c20b6 100755 --- a/test/hpa_automation/tosca/hpa_automation.py +++ b/test/hpa_automation/tosca/hpa_automation.py @@ -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 diff --git a/test/hpa_automation/tosca/vcpe_vgw_config.json b/test/hpa_automation/tosca/vcpe_vgw_config.json index 989734f79..d4bcef901 100755 --- a/test/hpa_automation/tosca/vcpe_vgw_config.json +++ b/test/hpa_automation/tosca/vcpe_vgw_config.json @@ -147,6 +147,7 @@ } }, "ns":{ + "url": "http://msb-iag:80", "csar-id": "You need change it", "key": "key1", "value": "value1", -- cgit 1.2.3-korg