From: Barath Kumar R Date: Mon, 1 Feb 2021 10:07:18 +0000 (+0530) Subject: BUG-1419 ng-ui can not fill in primitve list box for selected vnfd X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F45%2F10245%2F1;p=osm%2FNG-UI.git BUG-1419 ng-ui can not fill in primitve list box for selected vnfd * Changed short-name to id in get method to fetch NS & VNF packages Change-Id: Iaff295059a86cc1bded5eb3d2b58356c8b22283f Signed-off-by: Barath Kumar R --- diff --git a/src/app/instances/ns-primitive/NSPrimitiveComponent.ts b/src/app/instances/ns-primitive/NSPrimitiveComponent.ts index d5cf565..5dd8e6e 100644 --- a/src/app/instances/ns-primitive/NSPrimitiveComponent.ts +++ b/src/app/instances/ns-primitive/NSPrimitiveComponent.ts @@ -316,7 +316,7 @@ export class NSPrimitiveComponent implements OnInit { this.primitiveList = []; this.primitiveParameter = []; this.getFormControl('primitive').setValue(null); - const apiUrl: string = environment.VNFPACKAGES_URL + '?short-name=' + vnfdRef; + const apiUrl: string = environment.VNFPACKAGES_URL + '?id=' + vnfdRef; this.isLoadingResults = true; this.restService.getResource(apiUrl) .subscribe((vnfdInfo: {}) => { @@ -362,7 +362,7 @@ export class NSPrimitiveComponent implements OnInit { this.primitiveList = []; this.primitiveParameter = []; this.getFormControl('primitive').setValue(null); - const apiUrl: string = environment.NSDESCRIPTORS_URL + '?short-name=' + nsdRef; + const apiUrl: string = environment.NSDESCRIPTORS_URL + '?id=' + nsdRef; this.isLoadingResults = true; this.restService.getResource(apiUrl) .subscribe((nsdInfo: {}) => {