blob: 04f1fe83e63f63e86a6bfa6f55941d5f51e5b96b [file] [log] [blame]
Rich Lanec9fc57d2013-05-16 16:39:12 -07001-- binary
204 13 # version, type
300 80 # length
412 34 56 78 # xid
500 09 # stats_type
600 00 # flags
700 00 00 00 # pad
800 00 00 01 # entries[0].meter_id
900 48 # entries[0].len
1000 00 00 00 00 00 # pad
1100 00 00 08 # entries[0].flow_count
1200 00 00 00 00 00 00 10 # entries[0].packet_in_count
1300 00 00 00 00 00 00 20 # entries[0].byte_in_count
1400 00 00 14 # entries[0].duration_sec
1500 00 00 64 # entries[0].duration_nsec
1600 00 00 00 00 00 00 01 # entries[0].band_stats[0].packet_band_count
1700 00 00 00 00 00 00 02 # entries[0].band_stats[0].byte_band_count
1800 00 00 00 00 00 00 03 # entries[0].band_stats[1].packet_band_count
1900 00 00 00 00 00 00 04 # entries[0].band_stats[1].byte_band_count
2000 00 00 02 # entries[1].meter_id
2100 28 # entries[1].len
2200 00 00 00 00 00 # pad
2300 00 00 08 # entries[1].flow_count
2400 00 00 00 00 00 00 10 # entries[1].packet_in_count
2500 00 00 00 00 00 00 20 # entries[1].byte_in_count
2600 00 00 14 # entries[1].duration_sec
2700 00 00 64 # entries[1].duration_nsec
28-- python
29ofp.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=[])])