Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / webapp-frontend / src / app / ran-control / ran-control.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2019 AT&T Intellectual Property
6   %%
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ========================LICENSE_END===================================
19 -->
20
21 <div class="ran-control__section">
22   <h3 class="rd-global-page-title">RAN Connections</h3>
23
24   <button mat-raised-button (click)="setupRANConnection()">Setup Connection..</button>
25   <button mat-raised-button color="warn" class="disconnect-all-button"
26     (click)="disconnectAllRANConnections()">Disconnect All</button>
27
28   <table mat-table class="ran-control-table mat-elevation-z8" [dataSource]="dataSource">
29
30     <ng-template #noValue></ng-template>
31
32     <ng-container matColumnDef="nbId">
33       <mat-header-cell *matHeaderCellDef>Nodeb ID</mat-header-cell>
34       <mat-cell *matCellDef="let ran">
35         <div *ngIf="ran.nodebIdentity.globalNbId; else noValue">{{ran.nodebIdentity.globalNbId.nbId}}</div>
36       </mat-cell>
37     </ng-container>
38
39     <ng-container matColumnDef="nodeType">
40       <mat-header-cell *matHeaderCellDef>Node Type</mat-header-cell>
41       <mat-cell *matCellDef="let ran">
42         <div *ngIf="ran.nodebStatus; else noValue">{{ran.nodebStatus.nodeType}}</div>
43       </mat-cell>
44     </ng-container>
45
46     <ng-container matColumnDef="ranName">
47       <mat-header-cell *matHeaderCellDef>RAN Name</mat-header-cell>
48       <mat-cell *matCellDef="let ran">
49         <div *ngIf="ran.nodebIdentity; else noValue">{{ran.nodebIdentity.inventoryName}}</div>
50       </mat-cell>
51     </ng-container>
52
53     <ng-container matColumnDef="ranIp">
54       <mat-header-cell *matHeaderCellDef>IP</mat-header-cell>
55       <mat-cell *matCellDef="let ran">
56         <div *ngIf="ran.nodebStatus; else noValue">{{ran.nodebStatus.ip}}</div>
57       </mat-cell>
58     </ng-container>
59
60     <ng-container matColumnDef="ranPort">
61       <mat-header-cell *matHeaderCellDef>Port</mat-header-cell>
62       <mat-cell *matCellDef="let ran">
63         <div *ngIf="ran.nodebStatus; else noValue">{{ran.nodebStatus.port}}</div>
64       </mat-cell>
65     </ng-container>
66
67     <ng-container matColumnDef="connectionStatus">
68       <mat-header-cell *matHeaderCellDef>Connection Status</mat-header-cell>
69       <mat-cell *matCellDef="let ran">
70         <div *ngIf="ran.nodebStatus; else noValue">{{ran.nodebStatus.connectionStatus}}</div>
71       </mat-cell>
72     </ng-container>
73
74     <ng-container matColumnDef="noRecordsFound">
75       <mat-footer-cell *matFooterCellDef>No records found.</mat-footer-cell>
76     </ng-container>
77
78     <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
79     <mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
80     <mat-footer-row *matFooterRowDef="['noRecordsFound']" [ngClass]="{'display-none': dataSource.rowCount > 0}">
81     </mat-footer-row>
82
83   </table>
84
85   <div class="spinner-container" *ngIf="dataSource.loading$ | async">
86     <mat-spinner diameter=50></mat-spinner>
87   </div>
88
89 </div>