Bug 1419 ng-ui can not fill in primitve list box for selected vnfd 54/10354/1
authorBarath Kumar R <barath.r@tataelxsi.co.in>
Fri, 19 Feb 2021 13:04:44 +0000 (18:34 +0530)
committerBarath Kumar R <barath.r@tataelxsi.co.in>
Fri, 19 Feb 2021 13:04:44 +0000 (18:34 +0530)
* Changed name & product-name to id in get method to fetch NS & VNF packages

Change-Id: Iae2b599ebaf31e40ddbdff410720db3ac4cc8bc3
Signed-off-by: Barath Kumar R <barath.r@tataelxsi.co.in>
src/app/instances/ns-primitive/NSPrimitiveComponent.ts

index 50f7707..bfbbe40 100644 (file)
@@ -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 => {