From: SANDHYA.JS Date: Tue, 26 Apr 2022 12:29:39 +0000 (+0530) Subject: Fix Bug 1870: All Pdu instance parameters takes the same mgmt option (all of them... X-Git-Tag: v11.0.3~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=253d6f770e017480d9299406782d0be7d439642d;p=osm%2FNG-UI.git Fix Bug 1870: All Pdu instance parameters takes the same mgmt option (all of them True or all of them False) - When creating pdu instances, made the 'mgmt' parameter independent for each interface. Change-Id: Ia148b098d512b4a288a76601c87501a4b1a76170 Signed-off-by: SANDHYA.JS --- diff --git a/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.html b/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.html index f785426..54e36fa 100644 --- a/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.html +++ b/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.html @@ -70,7 +70,7 @@ Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.i
- +
diff --git a/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.ts b/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.ts index 0dcbb60..644b83d 100644 --- a/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.ts +++ b/src/app/instances/pdu-instances/add-pdu-instances/AddPDUInstancesComponent.ts @@ -59,9 +59,6 @@ export class AddPDUInstancesComponent implements OnInit { /** Variable set for twoway binding @public */ public pduInstanceId: string; - /** Set mgmt field to empty on load @public */ - public selectedMgmt: string; - /** Set vim field to empty on load @public */ public selectedVIM: string; @@ -141,7 +138,7 @@ export class AddPDUInstancesComponent implements OnInit { return this.formBuilder.group({ name: ['', [Validators.required]], 'ip-address': ['', [Validators.required, Validators.pattern(this.sharedService.REGX_IP_PATTERN)]], - mgmt: ['', [Validators.required]], + mgmt: [null, [Validators.required]], 'vim-network-name': ['', [Validators.required]] }); }