Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 13 # version, type |
| 3 | 00 30 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 0a # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 01 # entries[0].type |
| 9 | 00 10 # entries[0].length |
| 10 | 00 00 00 01 # entries[0].rate |
| 11 | 00 00 00 02 # entries[0].burst_size |
| 12 | 00 00 00 00 # pad |
| 13 | 00 02 # entries[1].type |
| 14 | 00 10 # entries[1].length |
| 15 | 00 00 00 03 # entries[1].rate |
| 16 | 00 00 00 04 # entries[1].burst_size |
| 17 | 05 # entries[1].prec_level |
| 18 | 00 00 00 # pad |
| 19 | -- python |
| 20 | ofp.message.meter_config_stats_reply( |
| 21 | xid=0x12345678, |
| 22 | flags=0, |
| 23 | entries=[ |
| 24 | ofp.meter_band.drop(rate=1, burst_size=2), |
| 25 | ofp.meter_band.dscp_remark(rate=3, burst_size=4, prec_level=5)]) |