blob: 43aeb93ca19cd32419c5232e77f2b49a466dfad9 [file] [log] [blame]
Jimmy Yanda878fc2016-09-02 16:32:01 -07001<!-- partial HTML -->
MaoLu937cf422017-03-03 23:31:46 -08002<div id="ov-roadm-port" class="less-gap" ng-init="queryShowItems()">
Jimmy Yanda878fc2016-09-02 16:32:01 -07003
4 <div class="tabular-header">
5 <h2>Ports for Optical Device {{devId}} ({{tableData.length}} total)</h2>
6 <div class="ctrl-btns">
7 <div class="refresh" ng-class="{active: autoRefresh}"
8 icon icon-id="refresh" icon-size="42"
9 tooltip tt-msg="autoRefreshTip"
10 ng-click="toggleRefresh()"></div>
11 <div class="separator"></div>
12
13 <div class="active"
14 icon icon-id="deviceTable" icon-size="42"
15 tooltip tt-msg="deviceTip"
16 ng-click="nav('roadmDevice')"></div>
17
18 <div class="active"
19 icon icon-id="flowTable" icon-size="42"
20 tooltip tt-msg="flowTip"
MaoLu937cf422017-03-03 23:31:46 -080021 ng-click="nav('roadmFlow')" ng-show="showFlowIcon"></div>
Jimmy Yanda878fc2016-09-02 16:32:01 -070022
23 <div class="current-view"
24 icon icon-id="portTable" icon-size="42"
25 tooltip tt-msg="portTip"></div>
26 </div>
27 </div>
28
29 <div class="summary-list" onos-table-resize>
Jimmy Yanda878fc2016-09-02 16:32:01 -070030 <div class="table-header" onos-sortable-header>
31 <table>
32 <tr>
33 <td colId="id" sortable>Port Number </td>
34 <td colId="name" sortable>Name </td>
35 <td colId="type" sortable>Type </td>
36 <td colId="enabled" sortable>Enabled </td>
37 <td colId="minFreq" sortable>Min Freq <span class="units">(THz)</span> </td>
38 <td colId="maxFreq" sortable>Max Freq <span class="units">(THz)</span> </td>
39 <td colId="grid" sortable>Grid <span class="units">(GHz)</span> </td>
MaoLu2f7eadb2017-05-02 15:38:43 -070040 <td colId="powerRange" sortable>Power Range </td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070041 <td colId="currentPower">Current Power <span class="units">(0.01dBm)</span> </td>
MaoLu937cf422017-03-03 23:31:46 -080042 <td colId="serviceState" ng-show="showServiceState">Protection Status </td>
43 <td colId="targetPower" col-width="200px" ng-show="showTargetPower">Target Power <span class="units">(0.01dBm)</span> </td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070044 </tr>
45 </table>
46 </div>
47
48 <div class="table-body">
49 <table>
50 <tr ng-if="!tableData.length" class="no-data">
MaoLu937cf422017-03-03 23:31:46 -080051 <td colspan="11">
Jimmy Yanda878fc2016-09-02 16:32:01 -070052 {{annots.no_rows_msg}}
53 </td>
54 </tr>
55
56 <tr ng-repeat="item in tableData track by $index"
57 ng-class="{selected: item.id === selId}">
58 <td>{{item.id}}</td>
59 <td>{{item.name}}</td>
60 <td>{{item.type}}</td>
61 <td>{{item.enabled}}</td>
62 <td>{{item.minFreq}}</td>
63 <td>{{item.maxFreq}}</td>
64 <td>{{item.grid}}</td>
MaoLu2f7eadb2017-05-02 15:38:43 -070065 <td>{{item.powerRange}}</td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070066 <td>{{item.currentPower}}</td>
MaoLu937cf422017-03-03 23:31:46 -080067 <td ng-show="showServiceState">{{item.serviceState}}</td>
68 <td ng-show="showTargetPower" class="editable" roadm-power="item" roadm-set-power="setPortPower(port, targetVal, cb)"></td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070069 </tr>
70 </table>
MaoLu937cf422017-03-03 23:31:46 -080071 <div class="mode-select" ng-show="showServiceState">
72 <hr/>
73 <label class="mode-title">Protection Mode:</label>
74 <select ng-model="opsModeType" ng-options="mode.type for mode in opsModeTypes"></select>
75 <button ng-click="changeOpsMode()" title="Click to apply selected protection mode">Apply</button>
76 <label class="mode-fail" ng-if="changeModeFail">{{changeModeFailMsg}}</label>
77 </div>
Jimmy Yanda878fc2016-09-02 16:32:01 -070078 </div>
Jimmy Yanda878fc2016-09-02 16:32:01 -070079 </div>
80</div>