blob: 54611f3ce00cc6dcc1171f01f9046e19131733bc [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>
21 Ports for Device {{devId || "(No device selected)"}}
22 ({{tableData.length}} total)
23 </h2>
24 <div class="ctrl-btns">
25 <div class="refresh active"
26 icon icon-size="36" icon-id="refresh"
Bri Prebilic Colebfab9c72015-06-01 14:33:18 -070027 ng-click="refresh(sortParams)"></div>
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070028 </div>
29 </div>
30
31 <div class="summary-list" onos-fixed-header>
32
33 <div class="table-header"
Bri Prebilic Colebfab9c72015-06-01 14:33:18 -070034 onos-sortable-header
35 sort-params="sortParams"
36 sort-callback="sortCallback(sortParams)">
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070037 <table>
38 <tr>
39 <td colId="id" col-width="60px" sortable>Port ID </td>
40 <td colId="pkt_rx" sortable>Pkts Received </td>
41 <td colId="pkt_tx" sortable>Pkts Sent </td>
42 <td colId="bytes_rx" sortable>Bytes Received </td>
43 <td colId="bytes_tx" sortable>Bytes Sent </td>
44 <td colId="pkt_rx_drp" sortable>Pkts Received Dropped </td>
45 <td colId="pkt_tx_drp" sortable>Pkts Sent Dropped </td>
46 <td colId="duration" sortable>Duration (sec) </td>
47 </tr>
48 </table>
49 </div>
50
51 <div class="table-body">
52 <table>
53 <tr ng-hide="tableData.length" class="no-data ignore-width">
54 <td colspan="8">
55 No Ports found
56 </td>
57 </tr>
58
59 <tr ng-repeat="port in tableData"
60 ng-repeat-done>
61 <td>{{port.id}}</td>
62 <td>{{port.pkt_rx}}</td>
63 <td>{{port.pkt_tx}}</td>
64 <td>{{port.bytes_rx}}</td>
65 <td>{{port.bytes_tx}}</td>
66 <td>{{port.pkt_rx_drp}}</td>
67 <td>{{port.pkt_tx_drp}}</td>
68 <td>{{port.duration}}</td>
69 </tr>
70 </table>
71 </div>
72
73 </div>
74
75</div>