blob: b242701710f5f08b7ece3f734ea6dd1611345601 [file] [log] [blame]
Boyuan Yan6b23b382019-06-04 11:59:35 -07001<!--
2~ Copyright 2019-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-device">
17 <onos-loading [theme]="'light'" [running]="loadingIconShown"></onos-loading>
18 <div class="tabular-header">
Andrea Campanella7cbeb972019-07-25 15:05:59 +020019 <h2>Optical Devices ({{ tableData.length }} total)</h2>
Boyuan Yan6b23b382019-06-04 11:59:35 -070020 <div class="ctrl-btns">
21 <div class="refresh" (click)="toggleRefresh()">
22 <!-- See icon.theme.css for the defintions of the classes active and refresh-->
23 <onos-icon classes="{{ autoRefresh?'active refresh':'refresh' }}" iconId="refresh" iconSize="42" toolTip="{{ autoRefreshTip }}"></onos-icon>
24 </div>
25 <div class="separator"></div>
26
27 <!--<div>-->
28 <!--<onos-icon classes="{{ selId ? 'current-view':undefined }}" iconId="deviceTable" iconSize="42"></onos-icon>-->
29 <!--</div>-->
30
31 <!--<div (click)="navto('/flow')">-->
32 <!--<onos-icon classes="{{ selId ? 'active-rect' :undefined}}" iconId="flowTable" iconSize="42" toolTip="{{ flowTip }}"></onos-icon>-->
33 <!--</div>-->
34
35 <div (click)="navto('/roadm-gui/roadm-port-gui')">
36 <onos-icon classes="{{ selId ? 'active-rect' :undefined}}" iconId="portTable" iconSize="42" toolTip="{{ portTip }}"></onos-icon>
37 </div>
38
39 </div>
40 <div class="search">
41 <input id="searchinput" [(ngModel)]="tableDataFilter.queryStr" type="search" #search placeholder="Search" />
42 <select [(ngModel)]="tableDataFilter.queryBy">
43 <option value="" disabled>Search By</option>
44 <option value="$">All Fields</option>
45 <option value="id">Device-Id</option>
46 <option value="name">Name</option>
47 <option value="protocol">Protocol</option>
48 </select>
49 </div>
50 </div>
51
52 <div id="summary-list" class="summary-list" onosTableResize>
53 <div class="table-header">
54 <table>
55 <tr>
56 <td colId="available" class="table-icon"></td>
57 <td colId="type" class="table-icon"></td>
Andrea Campanella7cbeb972019-07-25 15:05:59 +020058 <td colId="name">Friendly Name</td>
59 <td colId="id">Device ID</td>
60 <td colId="master" [ngClass]="{width: '130px'}">Master</td>
61 <td colId="ports" [ngClass]="{width: '70px'}">Ports</td>
62 <td colId="vendor">Vendor</td>
63 <td colId="hwVersion">H/W Version</td>
64 <td colId="swVersion">S/W Version</td>
65 <td colId="protocol" [ngClass]="{width: '100px'}">Protocol</td>
66 <td colId="type">Type</td>
Boyuan Yan6b23b382019-06-04 11:59:35 -070067 </tr>
68 </table>
69 </div>
70 <div class="table-body">
71 <table>
72 <tr class="table-body" *ngIf="tableData.length === 0" class="no-data">
73 <td colspan="9">{{ annots.noRowsMsg }}</td>
74 </tr>
75 <tr *ngFor="let dev of tableData | filter : tableDataFilter" (click)="selectCallback($event, dev)" [ngClass]="{selected: dev.id === selId, 'data-change': isChanged(dev.id)}">
76 <td class="table-icon">
77 <onos-icon classes="{{ dev._iconid_available}}" iconId={{dev._iconid_available}}></onos-icon>
78 </td>
79 <td class="table-icon">
80 <onos-icon classes="{{dev._iconid_type? 'active-type':undefined}}" iconId="{{dev._iconid_type}}"></onos-icon>
81 </td>
82 <td>{{ dev.name }}</td>
83 <td>{{ dev.id }}</td>
84 <td>{{ dev.master }}</td>
85 <td>{{ dev.ports }}</td>
86 <td>{{ dev.vendor }}</td>
87 <td>{{ dev.hwVersion }}</td>
88 <td>{{ dev.swVersion }}</td>
89 <td>{{ dev.protocol }}</td>
90 <td>{{ dev.type }}</td>
91 </tr>
92 </table>
93 </div>
94 </div>
95
96 <!--<onos-devicedetails class="floatpanels" id="{{ selId }}" (closeEvent)="deselectRow($event)"></onos-devicedetails>-->
97</div>