summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyuamber <xuranyjy@chinamobile.com>2019-08-21 12:18:24 +0800
committercyuamber <xuranyjy@chinamobile.com>2019-08-21 12:18:28 +0800
commit633d406d8d02db606600a5ecc8f6dd2672fa64d8 (patch)
treebf9ad212dbe5c68e287006d7e1b40beefced9675
parent41e56dbbd558084d1b30afc8f6d13c58351defdc (diff)
feat:api optimization for service instance functions
Change-Id: I94ce280b783658440e45f7e6cf951553307756c1 Issue-ID: USECASEUI-307 Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
-rw-r--r--usecaseui-portal/src/app/myhttp.service.ts13
1 files changed, 2 insertions, 11 deletions
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<HttpResponse<servicesTableData>> {
@@ -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<any>(this.url.updateccvpn + id); //local
return this.http.put<any>(this.url.updateccvpn + id,requestBody);// online
}
// Delete interface
@@ -155,15 +151,12 @@ export class MyhttpService {
'serviceType': obj.serviceType.name
}
};
- // return this.http.get<any>(this.url.deleteService); //Local simulation
return this.http.delete<any>(this.url.deleteService + obj.serviceInstanceId, httpOptions);
}
nsDeleteInstance(id) {
- // return this.http.get<any>(this.url.ns_deleteService); //Local simulation
return this.http.delete<any>(this.url.ns_deleteService + id);
}
stopNsService(id, requestBody) { //You need to terminate before deleting
- // return this.http.get<any>(this.url.ns_stopService); //Local simulation
return this.http.post<any>(this.url.ns_stopService + id, requestBody);
}
@@ -171,13 +164,11 @@ export class MyhttpService {
return this.http.get<any>(this.url.vnfInfo + id);
}
healNsService(id, requestBody) {
- // return this.http.get<any>(this.url.ns_healService); //Local simulation
return this.http.post<any>(this.url.ns_healService + id, requestBody);
}
// scale
scaleE2eService(id, requestBody) {
- // return this.http.get<any>(this.url.e2eScale + id);
return this.http.post<any>(this.url.e2eScale + id, requestBody);
}
getE2e_nsData(paramsObj) {