From 633d406d8d02db606600a5ecc8f6dd2672fa64d8 Mon Sep 17 00:00:00 2001 From: cyuamber Date: Wed, 21 Aug 2019 12:18:24 +0800 Subject: feat:api optimization for service instance functions Change-Id: I94ce280b783658440e45f7e6cf951553307756c1 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber --- usecaseui-portal/src/app/myhttp.service.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'usecaseui-portal/src/app') diff --git a/usecaseui-portal/src/app/myhttp.service.ts b/usecaseui-portal/src/app/myhttp.service.ts index e81a7d37..778b739c 100644 --- a/usecaseui-portal/src/app/myhttp.service.ts +++ b/usecaseui-portal/src/app/myhttp.service.ts @@ -35,7 +35,6 @@ export class MyhttpService { nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData", vimInfo: this.baseUrl + "/uui-lcm/locations/", sdnControllers: this.baseUrl + "/uui-lcm/sdnc-controllers/", - addressData: this.baseUrl + "/uui-sotn/getOssInvenory", createService: this.baseUrl + "/uui-lcm/services", ns_createService: this.baseUrl + "/uui-lcm/createNetworkServiceInstance", ns_createService2: this.baseUrl + "/uui-lcm/instantiateNetworkServiceInstance", @@ -50,11 +49,12 @@ export class MyhttpService { e2e_nsdata: this.baseUrl + "/getServiceInstanceById/customerId/", updateccvpn:this.baseUrl + "/uui-lcm/services/updateService/", + //The following api is about ccvpn details topology allottedResource: this.baseUrl + "/uui-sotn/getAllottedResources", pnfDetail: this.baseUrl + "/uui-sotn/getPnfInfo/", connectivity: this.baseUrl + "/uui-sotn/getConnectivityInfo/", vpnBinding: this.baseUrl + "/uui-sotn/getPinterfaceByVpnId/", - } + }; // serviceTable list getServicesTableData(paramsObj): Observable> { @@ -94,7 +94,6 @@ export class MyhttpService { //Get template input parameters getTemplateParameters(type, template) { - // let url = this.url.templateParameters.replace("*_*",type) + template.toscaModelURL; //Local simulation if (type == "ns") { let body = { csarId: template.id, @@ -137,9 +136,6 @@ export class MyhttpService { } updateccvpn(id,requestBody){ - console.log(id); - console.log(requestBody); - //return this.http.get(this.url.updateccvpn + id); //local return this.http.put(this.url.updateccvpn + id,requestBody);// online } // Delete interface @@ -155,15 +151,12 @@ export class MyhttpService { 'serviceType': obj.serviceType.name } }; - // return this.http.get(this.url.deleteService); //Local simulation return this.http.delete(this.url.deleteService + obj.serviceInstanceId, httpOptions); } nsDeleteInstance(id) { - // return this.http.get(this.url.ns_deleteService); //Local simulation return this.http.delete(this.url.ns_deleteService + id); } stopNsService(id, requestBody) { //You need to terminate before deleting - // return this.http.get(this.url.ns_stopService); //Local simulation return this.http.post(this.url.ns_stopService + id, requestBody); } @@ -171,13 +164,11 @@ export class MyhttpService { return this.http.get(this.url.vnfInfo + id); } healNsService(id, requestBody) { - // return this.http.get(this.url.ns_healService); //Local simulation return this.http.post(this.url.ns_healService + id, requestBody); } // scale scaleE2eService(id, requestBody) { - // return this.http.get(this.url.e2eScale + id); return this.http.post(this.url.e2eScale + id, requestBody); } getE2e_nsData(paramsObj) { -- cgit 1.2.3-korg