Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 1 | <!-- Port partial HTML --> |
| 2 | <div id="ov-port"> |
| 3 | <div class="tabular-header"> |
| 4 | <h2> |
Simon Hunt | 842283b | 2016-03-02 16:35:48 -0800 | [diff] [blame] | 5 | Ports for Device {{devId || "(No device selected)"}} |
Bri Prebilic Cole | 522e756 | 2015-06-22 15:56:25 -0700 | [diff] [blame] | 6 | ({{tableData.length}} Ports total) |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 7 | </h2> |
kalagesa | 1101dbb | 2016-12-20 23:34:28 +0530 | [diff] [blame] | 8 | |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 9 | <div class="ctrl-btns"> |
Bri Prebilic Cole | 41d6765 | 2015-06-02 10:23:04 -0700 | [diff] [blame] | 10 | <div class="refresh" ng-class="{active: autoRefresh}" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 11 | icon icon-size="42" icon-id="refresh" |
Bri Prebilic Cole | eef67ae | 2015-07-01 16:26:59 -0700 | [diff] [blame] | 12 | tooltip tt-msg="autoRefreshTip" |
Bri Prebilic Cole | 41d6765 | 2015-06-02 10:23:04 -0700 | [diff] [blame] | 13 | ng-click="toggleRefresh()"></div> |
Bri Prebilic Cole | 9b1fb9a | 2015-07-01 13:57:11 -0700 | [diff] [blame] | 14 | |
| 15 | <div class="separator"></div> |
| 16 | |
| 17 | <div class="active" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 18 | icon icon-id="deviceTable" icon-size="42" |
Simon Hunt | 20856ec | 2015-11-16 15:58:14 -0800 | [diff] [blame] | 19 | tooltip tt-msg="deviceTip" |
| 20 | ng-click="nav('device')"></div> |
| 21 | |
| 22 | <div class="active" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 23 | icon icon-id="flowTable" icon-size="42" |
Bri Prebilic Cole | eef67ae | 2015-07-01 16:26:59 -0700 | [diff] [blame] | 24 | tooltip tt-msg="flowTip" |
Bri Prebilic Cole | 9b1fb9a | 2015-07-01 13:57:11 -0700 | [diff] [blame] | 25 | ng-click="nav('flow')"></div> |
| 26 | |
| 27 | <div class="current-view" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 28 | icon icon-id="portTable" icon-size="42"></div> |
Bri Prebilic Cole | 9b1fb9a | 2015-07-01 13:57:11 -0700 | [diff] [blame] | 29 | |
| 30 | <div class="active" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 31 | icon icon-id="groupTable" icon-size="42" |
Bri Prebilic Cole | eef67ae | 2015-07-01 16:26:59 -0700 | [diff] [blame] | 32 | tooltip tt-msg="groupTip" |
Bri Prebilic Cole | 9b1fb9a | 2015-07-01 13:57:11 -0700 | [diff] [blame] | 33 | ng-click="nav('group')"></div> |
Jian Li | 1f54473 | 2015-12-30 23:36:37 -0800 | [diff] [blame] | 34 | |
| 35 | <div class="active" |
Simon Hunt | 5487ce7 | 2016-06-06 15:31:10 -0700 | [diff] [blame] | 36 | icon icon-id="meterTable" icon-size="42" |
Jian Li | 1f54473 | 2015-12-30 23:36:37 -0800 | [diff] [blame] | 37 | tooltip tt-msg="meterTip" |
| 38 | ng-click="nav('meter')"></div> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 39 | </div> |
kalagesa | 1101dbb | 2016-12-20 23:34:28 +0530 | [diff] [blame] | 40 | |
| 41 | <div class="search"> |
| 42 | <input type="text" ng-model="query" placeholder="Search"/> |
| 43 | <select ng-model="queryBy"> |
| 44 | <option value="" disabled>Search By</option> |
| 45 | <option value="$">All Fields</option> |
| 46 | <option value="id">Port ID </option> |
| 47 | <option value="pkt_rx">Pkts Received</option> |
| 48 | <option value="pkt_tx">Pkts Sent</option> |
| 49 | <option value="bytes_rx">Bytes Received</option> |
| 50 | <option value="bytes_tx">Bytes Sent</option> |
| 51 | <option value="pkt_rx_drp">Pkts RX Dropped</option> |
| 52 | <option value="pkt_rx_drp">Pkts TX Dropped</option> |
| 53 | <option value="duration">Duration (sec) </option> |
| 54 | </select> |
| 55 | </div> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 56 | </div> |
| 57 | |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 58 | <div class="summary-list" onos-table-resize> |
Bri Prebilic Cole | 0c41ba2 | 2015-07-06 15:09:48 -0700 | [diff] [blame] | 59 | <div class="table-header" onos-sortable-header> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 60 | <table> |
| 61 | <tr> |
| 62 | <td colId="id" col-width="60px" sortable>Port ID </td> |
Simon Hunt | be60dde | 2016-01-13 12:26:56 -0800 | [diff] [blame] | 63 | <td class="right" colId="pkt_rx" sortable>Pkts Received </td> |
| 64 | <td class="right" colId="pkt_tx" sortable>Pkts Sent </td> |
| 65 | <td class="right" colId="bytes_rx" sortable>Bytes Received </td> |
| 66 | <td class="right" colId="bytes_tx" sortable>Bytes Sent </td> |
kalagesa | 1101dbb | 2016-12-20 23:34:28 +0530 | [diff] [blame] | 67 | <td class="right" colId="pkt_rx_drp" sortable>Pkts RX Dropped </td> |
| 68 | <td class="right" colId="pkt_tx_drp" sortable>Pkts TX Dropped </td> |
Simon Hunt | be60dde | 2016-01-13 12:26:56 -0800 | [diff] [blame] | 69 | <td class="right" colId="duration" sortable>Duration (sec) </td> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 70 | </tr> |
| 71 | </table> |
| 72 | </div> |
| 73 | |
| 74 | <div class="table-body"> |
Bri Prebilic Cole | 70aacc4 | 2015-07-22 11:28:34 -0700 | [diff] [blame] | 75 | <table onos-flash-changes id-prop="id"> |
Bri Prebilic Cole | b3a6afe | 2015-06-24 14:10:41 -0700 | [diff] [blame] | 76 | <tr ng-if="!tableData.length" class="no-data"> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 77 | <td colspan="8"> |
Jian Li | 8baf447 | 2016-01-15 15:08:09 -0800 | [diff] [blame] | 78 | {{annots.no_rows_msg}} |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 79 | </td> |
| 80 | </tr> |
| 81 | |
kalagesa | 1101dbb | 2016-12-20 23:34:28 +0530 | [diff] [blame] | 82 | <tr ng-repeat="port in tableData | filter:queryFilter track by $index" |
Bri Prebilic Cole | 70aacc4 | 2015-07-22 11:28:34 -0700 | [diff] [blame] | 83 | ng-repeat-complete row-id="{{port.id}}"> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 84 | <td>{{port.id}}</td> |
Simon Hunt | be60dde | 2016-01-13 12:26:56 -0800 | [diff] [blame] | 85 | <td class="right">{{port.pkt_rx}}</td> |
| 86 | <td class="right">{{port.pkt_tx}}</td> |
| 87 | <td class="right">{{port.bytes_rx}}</td> |
| 88 | <td class="right">{{port.bytes_tx}}</td> |
| 89 | <td class="right">{{port.pkt_rx_drp}}</td> |
| 90 | <td class="right">{{port.pkt_tx_drp}}</td> |
| 91 | <td class="right">{{port.duration}}</td> |
Bri Prebilic Cole | ac829e4 | 2015-05-05 13:42:06 -0700 | [diff] [blame] | 92 | </tr> |
| 93 | </table> |
| 94 | </div> |
| 95 | |
| 96 | </div> |
| 97 | |
| 98 | </div> |