blob: 1917d02369a45fe1a71fd27f1e3cf647646c510f [file] [log] [blame]
Priyanka H Mfa5b77a2018-07-27 12:43:44 +05301<!--
2~ Copyright 2018-present Open Networking Foundation
3~
4~ Licensed under the Apache License, Version 2.0 (the "License");
5~ you may not use this file except in compliance with the License.
6~ You may obtain a copy of the License at
7~
8~ http://www.apache.org/licenses/LICENSE-2.0
9~
10~ Unless required by applicable law or agreed to in writing, software
11~ distributed under the License is distributed on an "AS IS" BASIS,
12~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13~ See the License for the specific language governing permissions and
14~ limitations under the License.
15-->
16<div id="ov-cluster">
Sean Condon95fb5742019-04-02 12:16:55 +010017 <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading>
Priyanka H Mfa5b77a2018-07-27 12:43:44 +053018 <div class="tabular-header">
19 <h2>
20 {{lionFn('title_cluster_nodes')}}
21 ({{tableData.length}} {{lionFn('total')}})
22 </h2>
23 <div class="ctrl-btns">
24 <div class="refresh" (click)="toggleRefresh()">
25 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}"
26 iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
27 </div>
28 </div>
29 </div>
30
31 <div class="summary-list" class="summary-list" onosTableResize>
32 <div class="table-header">
33 <table>
34 <tr>
35 <td colId="_iconid_state" style="width:84px" class="table-icon">
36 {{lionFn('active')}}
37 </td>
38 <td colId="_iconid_started" style="width:90px" class="table-icon">
39 {{lionFn('started')}}
40 </td>
41 <td colId="id"> {{lionFn('node_id')}}</td>
42 <td colId="ip"> {{lionFn('ip_address')}}</td>
43 <td colId="tcp"> {{lionFn('tcp_port')}}</td>
44 <td colId="updated"> {{lionFn('last_updated')}}</td>
45 </tr>
46 </table>
47 </div>
48
49 <div class="table-body">
50 <table>
51 <tr *ngIf="tableData.length === 0" class="no-data">
52 <td colspan="9">{{ annots.noRowsMsg }}</td>
53 </tr>
54
55 <tr *ngFor="let node of tableData" (click)="selectCallback($event, node)"
56 onosClusterDetails id="{{ selId }}" (closeEvent)="deselectRow($event)"
57 [ngClass]="{selected: node.id === selId, 'data-change': isChanged(node.id)}">
58 <td class="table-icon" style="width:84px">
59 <onos-icon classes="{{ node._iconid_state}}" iconId={{node._iconid_state}}></onos-icon>
60 </td>
61 <td class="table-icon" style="width:90px">
62 <onos-icon classes="{{node._iconid_started}}"
63 iconId="{{node._iconid_started}}"></onos-icon>
64 </td>
65 <td>{{node.id}}</td>
66 <td>{{node.ip}}</td>
67 <td>{{node.tcp}}</td>
68 <td>{{node.updated}}</td>
69 </tr>
70 </table>
71 </div>
72 </div>
Sean Condon95fb5742019-04-02 12:16:55 +010073</div>