BUG-1419 ng-ui can not fill in primitve list box for selected vnfd 45/10245/1
authorBarath Kumar R <barath.r@tataelxsi.co.in>
Mon, 1 Feb 2021 10:07:18 +0000 (15:37 +0530)
committerBarath Kumar R <barath.r@tataelxsi.co.in>
Mon, 1 Feb 2021 10:07:18 +0000 (15:37 +0530)
 * Changed short-name to id in get method to fetch NS & VNF packages

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

index d5cf565..5dd8e6e 100644 (file)
@@ -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: {}) => {