summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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])