xinwu | 7e2f382 | 2013-12-05 18:48:22 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 04 13 # version, type |
| 3 | 00 50 # length |
| 4 | 12 34 56 78 # xid |
| 5 | ff ff # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 5c 16 c7 # experimenter |
| 9 | 00 00 00 8 # subtype |
| 10 | # entries[0] |
| 11 | 00 18 # length |
| 12 | 00 00 # pad |
| 13 | 00 00 00 03 # port |
| 14 | 12 34 56 78 9a bc de f0 # values[0] |
| 15 | 11 22 33 44 55 66 77 88 # values[1] |
| 16 | # entries[0] |
| 17 | 00 20 # length |
| 18 | 00 00 # pad |
| 19 | 00 00 00 04 # port |
| 20 | 12 34 56 78 9a bc de f0 # values[0] |
| 21 | 11 22 33 44 55 66 77 88 # values[1] |
| 22 | ff ff ff ff ff ff ff ff # values[2] |
| 23 | -- python |
| 24 | ofp.message.bsn_port_counter_stats_reply( |
| 25 | xid=0x12345678, |
| 26 | flags=0, |
| 27 | entries=[ |
| 28 | ofp.bsn_port_counter_stats_entry( |
| 29 | port_no=3, |
| 30 | values=[ |
xinwu | 9b8989c | 2013-12-06 16:01:32 -0800 | [diff] [blame] | 31 | ofp.uint64(0x123456789abcdef0), |
| 32 | ofp.uint64(0x1122334455667788), |
xinwu | 7e2f382 | 2013-12-05 18:48:22 -0800 | [diff] [blame] | 33 | ]), |
| 34 | ofp.bsn_port_counter_stats_entry( |
| 35 | port_no=4, |
| 36 | values=[ |
xinwu | 9b8989c | 2013-12-06 16:01:32 -0800 | [diff] [blame] | 37 | ofp.uint64(0x123456789abcdef0), |
| 38 | ofp.uint64(0x1122334455667788), |
| 39 | ofp.uint64(0xffffffffffffffff), |
xinwu | 7e2f382 | 2013-12-05 18:48:22 -0800 | [diff] [blame] | 40 | ]) |
| 41 | ] |
| 42 | ) |