Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 01 11 # version/type |
| 3 | 00 dc # length |
| 4 | 00 00 00 05 # xid |
| 5 | 00 04 # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 01 # entries[0].port_no |
| 8 | 00 00 00 00 00 00 # entries[0].pad |
| 9 | 00 00 00 00 00 00 00 38 # entries[0].rx_packets |
| 10 | 00 00 00 00 00 00 00 00 # entries[0].tx_packets |
| 11 | 00 00 00 00 00 00 00 00 # entries[0].rx_bytes |
| 12 | 00 00 00 00 00 00 00 00 # entries[0].tx_bytes |
| 13 | 00 00 00 00 00 00 00 00 # entries[0].rx_dropped |
| 14 | 00 00 00 00 00 00 00 00 # entries[0].tx_dropped |
| 15 | 00 00 00 00 00 00 00 00 # entries[0].rx_errors |
| 16 | 00 00 00 00 00 00 00 00 # entries[0].tx_errors |
| 17 | 00 00 00 00 00 00 00 00 # entries[0].rx_frame_err |
| 18 | 00 00 00 00 00 00 00 00 # entries[0].rx_over_err |
| 19 | 00 00 00 00 00 00 00 00 # entries[0].rx_crc_err |
| 20 | 00 00 00 00 00 00 00 05 # entries[0].collisions |
| 21 | ff fe # entries[1].port_no |
| 22 | 00 00 00 00 00 00 # entries[1].pad |
| 23 | 00 00 00 00 00 00 00 01 # entries[1].rx_packets |
| 24 | 00 00 00 00 00 00 00 00 # entries[1].tx_packets |
| 25 | 00 00 00 00 00 00 00 00 # entries[1].rx_bytes |
| 26 | 00 00 00 00 00 00 00 00 # entries[1].tx_bytes |
| 27 | 00 00 00 00 00 00 00 00 # entries[1].rx_dropped |
| 28 | 00 00 00 00 00 00 00 00 # entries[1].tx_dropped |
| 29 | 00 00 00 00 00 00 00 00 # entries[1].rx_errors |
| 30 | 00 00 00 00 00 00 00 00 # entries[1].tx_errors |
| 31 | 00 00 00 00 00 00 00 00 # entries[1].rx_frame_err |
| 32 | 00 00 00 00 00 00 00 00 # entries[1].rx_over_err |
| 33 | 00 00 00 00 00 00 00 00 # entries[1].rx_crc_err |
| 34 | 00 00 00 00 00 00 00 01 # entries[1].collisions |
| 35 | -- python |
| 36 | ofp.message.port_stats_reply( |
| 37 | xid=5, flags=0, entries=[ |
| 38 | ofp.port_stats_entry(port_no=1, rx_packets=56, collisions=5), |
| 39 | ofp.port_stats_entry(port_no=ofp.OFPP_LOCAL, rx_packets=1, collisions=1)]) |