aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-08-30 17:27:22 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-08-30 17:27:22 +0800
commit7310fc94cd9b5577c031cf278092209ec7862c7c (patch)
tree8b3d5d0564aacd37df2a27a7da71b208e4838d46
parent8f429006625d65f9a13cd236b2e709c199a1d2ec (diff)
Extend rest call param to support sdc
Change-Id: I6b0f26e2d3c99e5fd51ed665ea74a22ebbbbd01f Issue-Id: VFC-195 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/pub/msapi/sdc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/lcm/pub/msapi/sdc.py b/lcm/pub/msapi/sdc.py
index 7a3e9394..b4ec1772 100644
--- a/lcm/pub/msapi/sdc.py
+++ b/lcm/pub/msapi/sdc.py
@@ -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}"