summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal
diff options
context:
space:
mode:
Diffstat (limited to 'usecaseui-portal')
-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) {