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: v12.0.0rc1~6 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNG-UI.git;a=commitdiff_plain;h=5030d1fc1db70ccadc8ffa5eafc8f46f2c7c0ce4;hp=875b4a15496b0d99168d9ecd46e1827c61836f7a 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]] }); }