+++ /dev/null
-<!--
- ========================LICENSE_START=================================
- O-RAN-SC
- %%
- Copyright (C) 2019 AT&T Intellectual Property
- %%
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ========================LICENSE_END===================================
- -->
-
-<div mat-dialog-title>
- Setup RAN Connection
-</div>
-<form [formGroup]="ranDialogForm" novalidate autocomplete="off" (ngSubmit)="setupConnection(ranDialogForm.value)">
- <div mat-dialog-content>
- <div name="rantype">
- <label id="request-type-radio-group-label">RAN type:</label>
- <mat-radio-group aria-label="RAN Type" formControlName="ranType">
- <mat-radio-button class="ran-type-radio-button" value="endc">EN-DC</mat-radio-button>
- <mat-radio-button class="ran-type-radio-button" value="x2">X2</mat-radio-button>
- </mat-radio-group>
- </div>
- <mat-form-field class="input-display-block">
- <input matInput type="text" placeholder="RAN Name" formControlName="ranName">
- <mat-hint align="end">Example: ABCD123456</mat-hint>
- <mat-error *ngIf="validateControl('ranName') && hasError('ranName', 'required')">Name is required</mat-error>
- <mat-error *ngIf="hasError('ranName', 'length')">Valid name is required</mat-error>
- </mat-form-field>
- <mat-form-field class="input-display-block">
- <input matInput type="text" placeholder="IP" formControlName="ranIp">
- <mat-error *ngIf="validateControl('ranIp') && hasError('ranIp', 'required')">IP is required</mat-error>
- <mat-error *ngIf="hasError('ranIp', 'pattern')">Valid IP is required</mat-error>
- </mat-form-field>
- <mat-form-field class="input-display-block">
- <input matInput type="text" placeholder="Port" formControlName="ranPort">
- <mat-error *ngIf="validateControl('ranPort') && hasError('ranPort', 'required')">Port is required</mat-error>
- <mat-error *ngIf="hasError('ranPort', 'pattern')">Valid port number is required</mat-error>
- </mat-form-field>
- </div>
- <div mat-dialog-actions class="modal-footer justify-content-center">
- <button class="mat-raised-button" (click)="onCancel()">Cancel</button>
- <button class="mat-raised-button mat-primary" [disabled]="!ranDialogForm.valid || processing">Connect</button>
- </div>
-</form>