Upgrade E2 to version 20190626
[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 and Nokia
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="ran-control__header">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   <div class="spinner-container" *ngIf="dataSource.loading$ | async">
29     <mat-spinner></mat-spinner>
30   </div>
31
32   <table mat-table class="ran-control-table mat-elevation-z8" [dataSource]="dataSource">
33
34     <ng-container matColumnDef="nbId">
35       <mat-header-cell *matHeaderCellDef>Nodeb ID</mat-header-cell>
36       <mat-cell *matCellDef="let ran">{{ran.nodebIdentity.globalNbId.nbId}}</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">{{ran.nodebStatus.nodeType}}</mat-cell>
42     </ng-container>
43
44     <ng-container matColumnDef="ranName">
45       <mat-header-cell *matHeaderCellDef>RAN Name</mat-header-cell>
46       <mat-cell *matCellDef="let ran">{{ran.nodebIdentity.inventoryName}}</mat-cell>
47     </ng-container>
48
49     <ng-container matColumnDef="ranIp">
50       <mat-header-cell *matHeaderCellDef>IP</mat-header-cell>
51       <mat-cell *matCellDef="let ran">{{ran.nodebStatus.ip}}</mat-cell>
52     </ng-container>
53
54     <ng-container matColumnDef="ranPort">
55       <mat-header-cell *matHeaderCellDef>Port</mat-header-cell>
56       <mat-cell *matCellDef="let ran">{{ran.nodebStatus.port}}</mat-cell>
57     </ng-container>
58
59     <ng-container matColumnDef="connectionStatus">
60       <mat-header-cell *matHeaderCellDef>Connection Status</mat-header-cell>
61       <mat-cell *matCellDef="let ran">{{ran.nodebStatus.connectionStatus}}</mat-cell>
62     </ng-container>
63
64     <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
65
66     <mat-row *matRowDef="let row; columns: displayedColumns"></mat-row>
67
68   </table>
69
70 </div>