blob: b8d43226e06a7e6269a9f47bfbdd3bdc21e3435d [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"
27 ng-click="refresh()"></div>
28 </div>
29 </div>
30
31 <div class="summary-list" onos-fixed-header>
32
33 <div class="table-header"
34 onos-sortable-header sort-callback="sortCallback(requestParams)">
35 <table>
36 <tr>
37 <td colId="id" col-width="60px" sortable>Port ID </td>
38 <td colId="pkt_rx" sortable>Pkts Received </td>
39 <td colId="pkt_tx" sortable>Pkts Sent </td>
40 <td colId="bytes_rx" sortable>Bytes Received </td>
41 <td colId="bytes_tx" sortable>Bytes Sent </td>
42 <td colId="pkt_rx_drp" sortable>Pkts Received Dropped </td>
43 <td colId="pkt_tx_drp" sortable>Pkts Sent Dropped </td>
44 <td colId="duration" sortable>Duration (sec) </td>
45 </tr>
46 </table>
47 </div>
48
49 <div class="table-body">
50 <table>
51 <tr ng-hide="tableData.length" class="no-data ignore-width">
52 <td colspan="8">
53 No Ports found
54 </td>
55 </tr>
56
57 <tr ng-repeat="port in tableData"
58 ng-repeat-done>
59 <td>{{port.id}}</td>
60 <td>{{port.pkt_rx}}</td>
61 <td>{{port.pkt_tx}}</td>
62 <td>{{port.bytes_rx}}</td>
63 <td>{{port.bytes_tx}}</td>
64 <td>{{port.pkt_rx_drp}}</td>
65 <td>{{port.pkt_tx_drp}}</td>
66 <td>{{port.duration}}</td>
67 </tr>
68 </table>
69 </div>
70
71 </div>
72
73</div>