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",
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>> {
//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,
}
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
'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);
}
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) {