blob: 326aebbb0ad21ffb29b7762760f25c0380dda7eb [file] [log] [blame]
Bri Prebilic Coleac829e42015-05-05 13:42:06 -07001<!--
2 ~ Copyright 2015 Open Networking Laboratory
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
17<!-- Port partial HTML -->
18<div id="ov-port">
19 <div class="tabular-header">
20 <h2>
Bri Prebilic Cole522e7562015-06-22 15:56:25 -070021 Port Statistics for Device {{devId || "(No device selected)"}}
22 ({{tableData.length}} Ports total)
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070023 </h2>
24 <div class="ctrl-btns">
Bri Prebilic Cole41d67652015-06-02 10:23:04 -070025 <div class="refresh" ng-class="{active: autoRefresh}"
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070026 icon icon-size="36" icon-id="refresh"
Bri Prebilic Cole41d67652015-06-02 10:23:04 -070027 ng-click="toggleRefresh()"></div>
Bri Prebilic Cole9b1fb9a2015-07-01 13:57:11 -070028
29 <div class="separator"></div>
30
31 <div class="active"
32 icon icon-id="flowTable" icon-size="36"
33 ng-click="nav('flow')"></div>
34
35 <div class="current-view"
36 icon icon-id="portTable" icon-size="36"></div>
37
38 <div class="active"
39 icon icon-id="groupTable" icon-size="36"
40 ng-click="nav('group')"></div>
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070041 </div>
42 </div>
43
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070044 <div class="summary-list" onos-table-resize>
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070045
46 <div class="table-header"
Bri Prebilic Colebfab9c72015-06-01 14:33:18 -070047 onos-sortable-header
48 sort-params="sortParams"
49 sort-callback="sortCallback(sortParams)">
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070050 <table>
51 <tr>
52 <td colId="id" col-width="60px" sortable>Port ID </td>
53 <td colId="pkt_rx" sortable>Pkts Received </td>
54 <td colId="pkt_tx" sortable>Pkts Sent </td>
55 <td colId="bytes_rx" sortable>Bytes Received </td>
56 <td colId="bytes_tx" sortable>Bytes Sent </td>
57 <td colId="pkt_rx_drp" sortable>Pkts Received Dropped </td>
58 <td colId="pkt_tx_drp" sortable>Pkts Sent Dropped </td>
59 <td colId="duration" sortable>Duration (sec) </td>
60 </tr>
61 </table>
62 </div>
63
64 <div class="table-body">
65 <table>
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070066 <tr ng-if="!tableData.length" class="no-data">
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070067 <td colspan="8">
68 No Ports found
69 </td>
70 </tr>
71
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070072 <tr ng-repeat="port in tableData track by $index">
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070073 <td>{{port.id}}</td>
74 <td>{{port.pkt_rx}}</td>
75 <td>{{port.pkt_tx}}</td>
76 <td>{{port.bytes_rx}}</td>
77 <td>{{port.bytes_tx}}</td>
78 <td>{{port.pkt_rx_drp}}</td>
79 <td>{{port.pkt_tx_drp}}</td>
80 <td>{{port.duration}}</td>
81 </tr>
82 </table>
83 </div>
84
85 </div>
86
87</div>