Create overall control with AppControl,RANControl
[portal/ric-dashboard.git] / webapp-frontend / src / app / ran-control / ran-control.component.html
diff --git a/webapp-frontend/src/app/ran-control/ran-control.component.html b/webapp-frontend/src/app/ran-control/ran-control.component.html
new file mode 100644 (file)
index 0000000..ba37728
--- /dev/null
@@ -0,0 +1,70 @@
+<!--
+  ========================LICENSE_START=================================
+  O-RAN-SC
+  %%
+  Copyright (C) 2019 AT&T Intellectual Property and Nokia
+  %%
+  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 class="ran-control__section">
+  <h3 class="ran-control__header">RAN Connections</h3>
+
+  <button mat-raised-button (click)="setupRANConnection()">Setup Connection..</button>
+  <button mat-raised-button color="warn" class="disconnect-all-button"
+    (click)="disconnectAllRANConnections()">Disconnect All</button>
+
+  <div class="spinner-container" *ngIf="dataSource.loading$ | async">
+    <mat-spinner></mat-spinner>
+  </div>
+
+  <table mat-table class="ran-control-table mat-elevation-z8" [dataSource]="dataSource">
+
+    <ng-container matColumnDef="requestType">
+      <mat-header-cell *matHeaderCellDef>RAN Type</mat-header-cell>
+      <mat-cell *matCellDef="let rconnect">{{rconnect.requestType}}</mat-cell>
+    </ng-container>
+
+    <ng-container matColumnDef="ranName">
+      <mat-header-cell *matHeaderCellDef>eNodeB/gNodeB Name</mat-header-cell>
+      <mat-cell *matCellDef="let rconnect">{{rconnect.ranName}}</mat-cell>
+    </ng-container>
+
+    <ng-container matColumnDef="ranIp">
+      <mat-header-cell *matHeaderCellDef>IP</mat-header-cell>
+      <mat-cell *matCellDef="let rconnect">{{rconnect.ranIp}}</mat-cell>
+    </ng-container>
+
+    <ng-container matColumnDef="ranPort">
+      <mat-header-cell *matHeaderCellDef>Port</mat-header-cell>
+      <mat-cell *matCellDef="let rconnect">{{rconnect.ranPort}}</mat-cell>
+    </ng-container>
+
+    <ng-container matColumnDef="responseCode">
+      <mat-header-cell *matHeaderCellDef>Response</mat-header-cell>
+      <mat-cell *matCellDef="let rconnect">{{rconnect.responseCode}}</mat-cell>
+    </ng-container>
+
+    <ng-container matColumnDef="timeStamp">
+      <mat-header-cell *matHeaderCellDef>Time Stamp</mat-header-cell>
+      <mat-cell *matCellDef="let rconnect">{{rconnect.timeStamp}}</mat-cell>
+    </ng-container>
+
+    <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
+
+    <mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
+
+  </table>
+
+</div>