Extend rest call param to support sdc 57/9357/1
authorfujinhua <fu.jinhua@zte.com.cn>
Wed, 30 Aug 2017 09:27:22 +0000 (17:27 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Wed, 30 Aug 2017 09:27:22 +0000 (17:27 +0800)
Change-Id: I6b0f26e2d3c99e5fd51ed665ea74a22ebbbbd01f
Issue-Id: VFC-195
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/pub/msapi/sdc.py

index 7a3e939..b4ec177 100644 (file)
@@ -25,13 +25,17 @@ ASSETTYPE_RESOURCES = "resources"
 ASSETTYPE_SERVICES = "services"
 
 def call_sdc(resource, method, content=''):
+    additional_headers = {
+        'X-ECOMP-InstanceID': 'VFC-NFVO-LCM'
+    }
     return restcall.call_req(base_url=SDC_BASE_URL, 
         user=SDC_USER, 
         passwd=SDC_PASSWD, 
         auth_type=restcall.rest_no_auth, 
         resource=resource, 
         method=method, 
-        content=content)
+        content=content,
+        additional_headers=additional_headers)
 
 def get_artifacts(asset_type):
     resource = "/sdc/v1/catalog/{assetType}"