<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">
/** 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;
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]]
});
}