From: Barath Kumar R Date: Fri, 19 Feb 2021 13:04:44 +0000 (+0530) Subject: Bug 1419 ng-ui can not fill in primitve list box for selected vnfd X-Git-Tag: v9.1.0~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F10365%2F1;p=osm%2FNG-UI.git Bug 1419 ng-ui can not fill in primitve list box for selected vnfd * Changed name & product-name to id in get method to fetch NS & VNF packages Change-Id: Iae2b599ebaf31e40ddbdff410720db3ac4cc8bc3 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 50f7707..bfbbe40 100644 --- a/src/app/instances/ns-primitive/NSPrimitiveComponent.ts +++ b/src/app/instances/ns-primitive/NSPrimitiveComponent.ts @@ -319,7 +319,7 @@ export class NSPrimitiveComponent implements OnInit { this.primitiveList = []; this.primitiveParameter = []; this.getFormControl('primitive').setValue(null); - const apiUrl: string = environment.VNFPACKAGES_URL + '?product-name=' + vnfdRef; + const apiUrl: string = environment.VNFPACKAGES_URL + '?id=' + vnfdRef; this.isLoadingResults = true; this.restService.getResource(apiUrl) .subscribe((vnfdInfo: VNFD[]): void => { @@ -374,7 +374,7 @@ export class NSPrimitiveComponent implements OnInit { this.primitiveList = []; this.primitiveParameter = []; this.getFormControl('primitive').setValue(null); - const apiUrl: string = environment.NSDESCRIPTORS_URL + '?name=' + nsdRef; + const apiUrl: string = environment.NSDESCRIPTORS_URL + '?id=' + nsdRef; this.isLoadingResults = true; this.restService.getResource(apiUrl) .subscribe((nsdInfo: {}): void => {