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