blob: 8eecb9d625bf202045b53619425c5786a9cb20a5 [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 Coleeef67ae2015-07-01 16:26:59 -070027 tooltip tt-msg="autoRefreshTip"
Bri Prebilic Cole41d67652015-06-02 10:23:04 -070028 ng-click="toggleRefresh()"></div>
Bri Prebilic Cole9b1fb9a2015-07-01 13:57:11 -070029
30 <div class="separator"></div>
31
32 <div class="active"
33 icon icon-id="flowTable" icon-size="36"
Bri Prebilic Coleeef67ae2015-07-01 16:26:59 -070034 tooltip tt-msg="flowTip"
Bri Prebilic Cole9b1fb9a2015-07-01 13:57:11 -070035 ng-click="nav('flow')"></div>
36
37 <div class="current-view"
38 icon icon-id="portTable" icon-size="36"></div>
39
40 <div class="active"
41 icon icon-id="groupTable" icon-size="36"
Bri Prebilic Coleeef67ae2015-07-01 16:26:59 -070042 tooltip tt-msg="groupTip"
Bri Prebilic Cole9b1fb9a2015-07-01 13:57:11 -070043 ng-click="nav('group')"></div>
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070044 </div>
45 </div>
46
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070047 <div class="summary-list" onos-table-resize>
Bri Prebilic Cole6e1b4a52015-08-03 17:10:44 -070048 <div ng-show="loading" class="loading-wheel"
49 icon icon-id="loading" icon-size="75"></div>
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070050
Bri Prebilic Cole0c41ba22015-07-06 15:09:48 -070051 <div class="table-header" onos-sortable-header>
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070052 <table>
53 <tr>
54 <td colId="id" col-width="60px" sortable>Port ID </td>
55 <td colId="pkt_rx" sortable>Pkts Received </td>
56 <td colId="pkt_tx" sortable>Pkts Sent </td>
57 <td colId="bytes_rx" sortable>Bytes Received </td>
58 <td colId="bytes_tx" sortable>Bytes Sent </td>
59 <td colId="pkt_rx_drp" sortable>Pkts Received Dropped </td>
60 <td colId="pkt_tx_drp" sortable>Pkts Sent Dropped </td>
61 <td colId="duration" sortable>Duration (sec) </td>
62 </tr>
63 </table>
64 </div>
65
66 <div class="table-body">
Bri Prebilic Cole70aacc42015-07-22 11:28:34 -070067 <table onos-flash-changes id-prop="id">
Bri Prebilic Coleb3a6afe2015-06-24 14:10:41 -070068 <tr ng-if="!tableData.length" class="no-data">
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070069 <td colspan="8">
70 No Ports found
71 </td>
72 </tr>
73
Bri Prebilic Cole0bc4de22015-07-20 17:07:55 -070074 <tr ng-repeat="port in tableData track by $index"
Bri Prebilic Cole70aacc42015-07-22 11:28:34 -070075 ng-repeat-complete row-id="{{port.id}}">
Bri Prebilic Coleac829e42015-05-05 13:42:06 -070076 <td>{{port.id}}</td>
77 <td>{{port.pkt_rx}}</td>
78 <td>{{port.pkt_tx}}</td>
79 <td>{{port.bytes_rx}}</td>
80 <td>{{port.bytes_tx}}</td>
81 <td>{{port.pkt_rx_drp}}</td>
82 <td>{{port.pkt_tx_drp}}</td>
83 <td>{{port.duration}}</td>
84 </tr>
85 </table>
86 </div>
87
88 </div>
89
90</div>