Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 1 | -- binary |
| 2 | 04 13 # version, type |
| 3 | 00 80 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 09 # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 00 00 01 # entries[0].meter_id |
| 9 | 00 48 # entries[0].len |
| 10 | 00 00 00 00 00 00 # pad |
| 11 | 00 00 00 08 # entries[0].flow_count |
| 12 | 00 00 00 00 00 00 00 10 # entries[0].packet_in_count |
| 13 | 00 00 00 00 00 00 00 20 # entries[0].byte_in_count |
| 14 | 00 00 00 14 # entries[0].duration_sec |
| 15 | 00 00 00 64 # entries[0].duration_nsec |
| 16 | 00 00 00 00 00 00 00 01 # entries[0].band_stats[0].packet_band_count |
| 17 | 00 00 00 00 00 00 00 02 # entries[0].band_stats[0].byte_band_count |
| 18 | 00 00 00 00 00 00 00 03 # entries[0].band_stats[1].packet_band_count |
| 19 | 00 00 00 00 00 00 00 04 # entries[0].band_stats[1].byte_band_count |
| 20 | 00 00 00 02 # entries[1].meter_id |
| 21 | 00 28 # entries[1].len |
| 22 | 00 00 00 00 00 00 # pad |
| 23 | 00 00 00 08 # entries[1].flow_count |
| 24 | 00 00 00 00 00 00 00 10 # entries[1].packet_in_count |
| 25 | 00 00 00 00 00 00 00 20 # entries[1].byte_in_count |
| 26 | 00 00 00 14 # entries[1].duration_sec |
| 27 | 00 00 00 64 # entries[1].duration_nsec |
| 28 | -- python |
| 29 | ofp.message.meter_stats_reply( |
| 30 | xid=0x12345678, |
| 31 | flags=0, |
| 32 | entries=[ |
| 33 | ofp.meter_stats( |
| 34 | meter_id=1, |
| 35 | flow_count=8, |
| 36 | packet_in_count=16, |
| 37 | byte_in_count=32, |
| 38 | duration_sec=20, |
| 39 | duration_nsec=100, |
| 40 | band_stats=[ |
| 41 | ofp.meter_band_stats(packet_band_count=1, byte_band_count=2), |
| 42 | ofp.meter_band_stats(packet_band_count=3, byte_band_count=4)]), |
| 43 | ofp.meter_stats( |
| 44 | meter_id=2, |
| 45 | flow_count=8, |
| 46 | packet_in_count=16, |
| 47 | byte_in_count=32, |
| 48 | duration_sec=20, |
| 49 | duration_nsec=100, |
| 50 | band_stats=[])]) |