Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 13 # version, type |
| 3 | 00 20 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 0b # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 00 00 05 # max_meter |
| 9 | 00 00 00 03 # band_types |
| 10 | 00 00 00 09 # capabilities |
| 11 | 0a # max_bands |
| 12 | 07 # max_color |
| 13 | 00 00 # pad |
| 14 | -- python |
| 15 | ofp.message.meter_features_stats_reply( |
| 16 | xid=0x12345678, |
| 17 | flags=0, |
| 18 | features=ofp.meter_features( |
| 19 | max_meter=5, |
| 20 | band_types=ofp.OFPMBT_DROP|ofp.OFPMBT_DSCP_REMARK, |
| 21 | capabilities=ofp.OFPMF_KBPS|ofp.OFPMF_STATS, |
| 22 | max_bands=10, |
| 23 | max_color=7)) |