From: guochuyicmri Date: Mon, 13 May 2019 10:12:00 +0000 (+0800) Subject: Fix instance instantiation for CCVPN X-Git-Tag: 2.0.1~23^2~8 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=14e41af3117a7c8c758cf887da5918356720c730;p=usecase-ui.git Fix instance instantiation for CCVPN Change-Id: Id97cb60f537e550854c18d845d54e7e44ad895d2 Issue-ID: USECASEUI-220 Signed-off-by: guochuyicmri --- diff --git a/usecaseui-portal/src/app/myhttp.service.ts b/usecaseui-portal/src/app/myhttp.service.ts index 58fc7034..6ed8f6ef 100644 --- a/usecaseui-portal/src/app/myhttp.service.ts +++ b/usecaseui-portal/src/app/myhttp.service.ts @@ -31,6 +31,7 @@ export class MyhttpService { servicesTableData: this.baseUrl + '/uui-lcm/service-instances', serviceTemplates: this.baseUrl + "/uui-lcm/service-templates", templateParameters: this.baseUrl + "/uui-lcm/fetchTemplateInfo", + e2etemplateParameters: this.baseUrl + "/uui-lcm/service-templates/" + "*_*" + "?toscaModelPath=", nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData", vimInfo: this.baseUrl + "/uui-lcm/locations/", sdnControllers: this.baseUrl + "/uui-lcm/sdnc-controllers/", @@ -98,15 +99,19 @@ export class MyhttpService { let body = { csarId: template.id, inputs: "" - } + }; return this.http.post(this.url.nstemplateParameters, body); + }else if(type == "e2e"){ + let url = this.url.e2etemplateParameters.replace("*_*", template.uuid) + template.toscaModelURL; + return this.http.get(url); + }else { + let body = { + csarId: template.uuid, + packageType: "Service", + inputs: "" + }; + return this.http.post(this.url.templateParameters, body); } - let body = { - csarId: template.uuid, - packageType: "", - inputs: "" - }; - return this.http.post(this.url.templateParameters, body); } getVimInfo() {