summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2017-08-30 10:41:59 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2017-08-30 10:41:59 +0800
commit2208d0ecf680a3c2e815afa7fead92b35e774d53 (patch)
treef93b7f4ef2d071ff98e56979c2a9378e539e16e0
parent3c30a6fe0eb4a4fb10d86b826102779b08a26dc9 (diff)
Add gvnfm-vnflcm .gitreview file
Change-Id: I2b594d1547e7a294879cca925b8ab97b6bc66d3f Issue-ID: VFC-189 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rw-r--r--.gitreview4
-rw-r--r--lcm/lcm/pub/aaiapi/aai.py5
2 files changed, 8 insertions, 1 deletions
diff --git a/.gitreview b/.gitreview
new file mode 100644
index 00000000..83418307
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,4 @@
+[gerrit]
+host=gerrit.onap.org
+port=29418
+project=vfc/gvnfm/vnflcm \ No newline at end of file
diff --git a/lcm/lcm/pub/aaiapi/aai.py b/lcm/lcm/pub/aaiapi/aai.py
index 36ed2bfb..42418ca7 100644
--- a/lcm/lcm/pub/aaiapi/aai.py
+++ b/lcm/lcm/pub/aaiapi/aai.py
@@ -107,6 +107,7 @@ def query_vserver(cloud_owner, cloud_region_id, tenant_id, vserver_id, data):
raise NFLCMException("Vserver query exception in AAI")
return json.JSONDecoder().decode(ret[1])
+
def put_vserver_relationship(cloud_owner, cloud_region_id, tenant_id, vserver_id, data):
resource = "/cloud-infrastructure/cloud-regions/cloud-region/%s/" \
"%s/tenants/tenant/%s/vservers/vserver/%s/relationship-list/relationship" % \
@@ -127,6 +128,7 @@ def delete_vserver_relationship(cloud_owner, cloud_region_id, tenant_id, vserver
raise NFLCMException("Delete vserver relationship exception in AAI")
return json.JSONDecoder().decode(ret[1])
+
def put_vnf_relationship(vnf_id, data):
resource = "/network/generic-vnfs/generic-vnf/%s/relationship-list/relationship" % vnf_id
ret = call_req_aai(AAI_BASE_URL, AAI_USER, AAI_PASSWORD, rest_no_auth, resource, "PUT", data)
@@ -143,6 +145,7 @@ def delete_vnf_relationship(vnf_id, data):
raise NFLCMException("Delete vnf instance relationship exception in AAI")
return json.JSONDecoder().decode(ret[1])
+
def put_ns_relationship(global_customer_id, service_type, service_instance_id, data):
resource = "/business/customers/customer/%s/service-subscriptions/service-subscription/" \
"%s/service-instances/service-instance/%s/relationship-list/relationship" % \
@@ -161,4 +164,4 @@ def delete_ns_relationship(global_customer_id, service_type, service_instance_id
if ret[0] != 0:
logger.error("Status code is %s, detail is %s.", ret[2], ret[1])
raise NFLCMException("Delete ns instance relationship exception in AAI")
- return json.JSONDecoder().decode(ret[1]) \ No newline at end of file
+ return json.JSONDecoder().decode(ret[1])