- When creating pdu instances, made the 'mgmt' parameter independent for each interface.
Change-Id: Ia148b098d512b4a288a76601c87501a4b1a76170
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
<div class="row mr-top-5">
<label class="col-sm-2 col-form-label" for="mgmt{{i}}">{{'MGMT' | translate}}*</label>
<div class="col-sm-4">
<div class="row mr-top-5">
<label class="col-sm-2 col-form-label" for="mgmt{{i}}">{{'MGMT' | translate}}*</label>
<div class="col-sm-4">
- <ng-select placeholder="{{'SELECT' | translate}} {{'MGMT' | translate}}" [items]="mgmtState" bindLabel="name" bindValue="value" formControlName="mgmt" id="mgmt{{i}}" [(ngModel)]="selectedMgmt" [ngClass]="{ 'is-invalid': submitted && params.controls.mgmt.errors }"></ng-select>
+ <ng-select placeholder="{{'SELECT' | translate}} {{'MGMT' | translate}}" [items]="mgmtState" bindLabel="name" bindValue="value" formControlName="mgmt" id="mgmt{{i}}" [ngClass]="{ 'is-invalid': submitted && params.controls.mgmt.errors }"></ng-select>
</div>
<label class="col-sm-2 col-form-label padLeft0 padRight0" for="vimNetName{{i}}">{{'NETNAME' | translate}}*</label>
<div class="col-sm-4">
</div>
<label class="col-sm-2 col-form-label padLeft0 padRight0" for="vimNetName{{i}}">{{'NETNAME' | translate}}*</label>
<div class="col-sm-4">
/** Variable set for twoway binding @public */
public pduInstanceId: string;
/** 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;
/** Set vim field to empty on load @public */
public selectedVIM: string;
return this.formBuilder.group({
name: ['', [Validators.required]],
'ip-address': ['', [Validators.required, Validators.pattern(this.sharedService.REGX_IP_PATTERN)]],
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]]
});
}
'vim-network-name': ['', [Validators.required]]
});
}