blob: 45a35322762aeed6d00b92cdd4fd6223353a6c2d [file] [log] [blame]
Rich Lanec9fc57d2013-05-16 16:39:12 -07001-- binary
201 11 # version/type
300 dc # length
400 00 00 05 # xid
500 04 # stats_type
600 00 # flags
700 01 # entries[0].port_no
800 00 00 00 00 00 # entries[0].pad
900 00 00 00 00 00 00 38 # entries[0].rx_packets
1000 00 00 00 00 00 00 00 # entries[0].tx_packets
1100 00 00 00 00 00 00 00 # entries[0].rx_bytes
1200 00 00 00 00 00 00 00 # entries[0].tx_bytes
1300 00 00 00 00 00 00 00 # entries[0].rx_dropped
1400 00 00 00 00 00 00 00 # entries[0].tx_dropped
1500 00 00 00 00 00 00 00 # entries[0].rx_errors
1600 00 00 00 00 00 00 00 # entries[0].tx_errors
1700 00 00 00 00 00 00 00 # entries[0].rx_frame_err
1800 00 00 00 00 00 00 00 # entries[0].rx_over_err
1900 00 00 00 00 00 00 00 # entries[0].rx_crc_err
2000 00 00 00 00 00 00 05 # entries[0].collisions
21ff fe # entries[1].port_no
2200 00 00 00 00 00 # entries[1].pad
2300 00 00 00 00 00 00 01 # entries[1].rx_packets
2400 00 00 00 00 00 00 00 # entries[1].tx_packets
2500 00 00 00 00 00 00 00 # entries[1].rx_bytes
2600 00 00 00 00 00 00 00 # entries[1].tx_bytes
2700 00 00 00 00 00 00 00 # entries[1].rx_dropped
2800 00 00 00 00 00 00 00 # entries[1].tx_dropped
2900 00 00 00 00 00 00 00 # entries[1].rx_errors
3000 00 00 00 00 00 00 00 # entries[1].tx_errors
3100 00 00 00 00 00 00 00 # entries[1].rx_frame_err
3200 00 00 00 00 00 00 00 # entries[1].rx_over_err
3300 00 00 00 00 00 00 00 # entries[1].rx_crc_err
3400 00 00 00 00 00 00 01 # entries[1].collisions
35-- python
36ofp.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)])