blob: 24c8a2055c03000f39c1ba486548a8a67cfc6b39 [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>
alessiod4a2b842019-04-30 18:43:17 +020034 <td colId="reversePort" sortable>Reverse </td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070035 <td colId="name" sortable>Name </td>
36 <td colId="type" sortable>Type </td>
37 <td colId="enabled" sortable>Enabled </td>
38 <td colId="minFreq" sortable>Min Freq <span class="units">(THz)</span> </td>
39 <td colId="maxFreq" sortable>Max Freq <span class="units">(THz)</span> </td>
40 <td colId="grid" sortable>Grid <span class="units">(GHz)</span> </td>
MaoLu2f7eadb2017-05-02 15:38:43 -070041 <td colId="powerRange" sortable>Power Range </td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070042 <td colId="currentPower">Current Power <span class="units">(0.01dBm)</span> </td>
MaoLu937cf422017-03-03 23:31:46 -080043 <td colId="serviceState" ng-show="showServiceState">Protection Status </td>
44 <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 -070045 </tr>
46 </table>
47 </div>
48
49 <div class="table-body">
50 <table>
51 <tr ng-if="!tableData.length" class="no-data">
MaoLu937cf422017-03-03 23:31:46 -080052 <td colspan="11">
Jimmy Yanda878fc2016-09-02 16:32:01 -070053 {{annots.no_rows_msg}}
54 </td>
55 </tr>
56
57 <tr ng-repeat="item in tableData track by $index"
58 ng-class="{selected: item.id === selId}">
59 <td>{{item.id}}</td>
alessiod4a2b842019-04-30 18:43:17 +020060 <td>{{item.reversePort}}</td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070061 <td>{{item.name}}</td>
62 <td>{{item.type}}</td>
63 <td>{{item.enabled}}</td>
64 <td>{{item.minFreq}}</td>
65 <td>{{item.maxFreq}}</td>
66 <td>{{item.grid}}</td>
MaoLu2f7eadb2017-05-02 15:38:43 -070067 <td>{{item.powerRange}}</td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070068 <td>{{item.currentPower}}</td>
MaoLu937cf422017-03-03 23:31:46 -080069 <td ng-show="showServiceState">{{item.serviceState}}</td>
Boyuan Yanf3f6a8d2019-05-26 18:35:54 -070070 <td ng-show="showTargetPower" class="editable" roadm-power="item"
71 roadm-set-power="setPortPower(port, targetVal, cb)"
72 roadm-sync-power="syncPortPower(port, cb)"></td>
Jimmy Yanda878fc2016-09-02 16:32:01 -070073 </tr>
74 </table>
MaoLu937cf422017-03-03 23:31:46 -080075 <div class="mode-select" ng-show="showServiceState">
76 <hr/>
MaoLu2846b112017-05-15 17:18:55 -070077 <label class="mode-title">Protection Switch:</label>
78 <select ng-model="opsModeType" ng-options="mode.name for mode in opsModeTypes"></select>
MaoLu937cf422017-03-03 23:31:46 -080079 <button ng-click="changeOpsMode()" title="Click to apply selected protection mode">Apply</button>
80 <label class="mode-fail" ng-if="changeModeFail">{{changeModeFailMsg}}</label>
81 </div>
Jimmy Yanda878fc2016-09-02 16:32:01 -070082 </div>
Jimmy Yanda878fc2016-09-02 16:32:01 -070083 </div>
84</div>