diff options
author | guochuyicmri <guochuyi@chinamobile.com> | 2019-04-22 17:59:28 +0800 |
---|---|---|
committer | guochuyicmri <guochuyi@chinamobile.com> | 2019-04-22 17:59:40 +0800 |
commit | 8aff6d8cbc022cbe4db09cabe096f463aa98b00d (patch) | |
tree | 1bc5e0c18864aefe48d10a9d9430cbc985b982e2 /usecaseui-portal/src/app | |
parent | 1482020a3dbb4bef55eb0c4c80d6ae0694075de8 (diff) |
Fix instance instantiation for CCVPN
Change-Id: Id5eb0fddea24772d8231e78c6bdc903cb3d80877
Issue-ID: USECASEUI-220
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r-- | usecaseui-portal/src/app/myhttp.service.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usecaseui-portal/src/app/myhttp.service.ts b/usecaseui-portal/src/app/myhttp.service.ts index ddf40de7..0f016a0c 100644 --- a/usecaseui-portal/src/app/myhttp.service.ts +++ b/usecaseui-portal/src/app/myhttp.service.ts @@ -22,7 +22,7 @@ import { homeData, homeVmLineData, servicesSelectData, servicesTableData, create export class MyhttpService { constructor(private http: HttpClient) { } - baseUrl = baseUrl.baseUrl + baseUrl = baseUrl.baseUrl; url = { listSortMasters:this.baseUrl+"/listSortMasters", customers: this.baseUrl + "/uui-lcm/customers", @@ -30,7 +30,7 @@ export class MyhttpService { serviceType: this.baseUrl + "/uui-lcm/customers/" + "*_*" + "/service-subscriptions", servicesTableData: this.baseUrl + '/uui-lcm/service-instances', serviceTemplates: this.baseUrl + "/uui-lcm/service-templates", - templateParameters: this.baseUrl + "/uui-lcm/service-templates/" + "*_*" + "?toscaModelPath=", + templateParameters: this.baseUrl + "/uui-lcm/fetchTemplateInfo", nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData", vimInfo: this.baseUrl + "/uui-lcm/locations/", sdnControllers: this.baseUrl + "/uui-lcm/sdnc-controllers/", @@ -101,8 +101,12 @@ export class MyhttpService { } return this.http.post<any>(this.url.nstemplateParameters, body); } - let url = this.url.templateParameters.replace("*_*", template.uuid) + template.toscaModelURL; - return this.http.get<any>(url); + let body = { + csarId: template.id, + packageType: "", + inputs: "" + }; + return this.http.post<any>(this.url.templateParameters, body); } // siteAddress address getSiteAddress() { |