blob: e90ede83e95222b6f889f9e1e7de36b36b3bced3 [file] [log] [blame]
Bhavesh72ead492018-07-19 16:29:18 +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-link">
17 <div class="tabular-header">
18 <h2>Links ({{tableData.length}} total)</h2>
19 <div class="ctrl-btns">
20 <div class="refresh" (click)="toggleRefresh()">
21 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh'}}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
22 </div>
23 </div>
24 </div>
25 <div class="summary-list" onosTableResize>
26 <div class="table-header">
27 <table>
28 <tr>
29 <td colId="available" class="table-icon"></td>
30 <td colId="one" (click)="onSort('one')">Port 1
31 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('one')"></onos-icon>
32 </td>
33 <td colId="two" (click)="onSort('two')">Port 2
34 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('two')"></onos-icon>
35 </td>
36 <td colId="type" (click)="onSort('type')">Type
37 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('type')"></onos-icon>
38 </td>
39 <td colId="direction" (click)="onSort('direction')">Direction
40 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('direction')"></onos-icon>
41 </td>
42 <td colId="durable" (click)="onSort('durable')">Durable
43 <onos-icon classes="active-sort" [iconSize]="10" [iconId]="sortIcon('durable')"></onos-icon>
44 </td>
45 </tr>
46 </table>
47 </div>
48 <div class="table-body">
49 <table>
50 <tr *ngIf="tableData.length === 0" class="no-data">
51 <td colspan="6">{{ annots.noRowsMsg }}</td>
52 </tr>
53 <tr *ngFor="let link of tableData">
54 <td class="table-icon">
55 <onos-icon classes="{{link._iconid_state === 'active'? 'active':'inactive'}}" iconId="{{link._iconid_state}}"></onos-icon>
56 </td>
57 <td>{{link.one}}</td>
58 <td>{{link.two}}</td>
59 <td>{{link.type}}</td>
60 <td [innerHtml]="link.direction"></td>
61 <td>{{link.durable}}</td>
62 </tr>
63 </table>
64 </div>
65 </div>
66</div>