blob: b14eb746b68635979bd3db647cc66b278d14983c [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 06 # stats_type
600 00 # flags
700 00 00 00 # pad
800 48 # entries[0].length
900 00 # pad
1000 00 00 01 # entries[0].group_id
1100 00 00 08 # entries[0].ref_count
1200 00 00 00 # pad
1300 00 00 00 00 00 00 10 # entries[0].packet_count
1400 00 00 00 00 00 00 20 # entries[0].byte_count
1500 00 00 14 # entries[0].duration_sec
1600 00 00 64 # entries[0].duration_nsec
1700 00 00 00 00 00 00 01 # entries[0].bucket_stats[0].packet_count
1800 00 00 00 00 00 00 02 # entries[0].bucket_stats[0].byte_count
1900 00 00 00 00 00 00 03 # entries[0].bucket_stats[1].packet_count
2000 00 00 00 00 00 00 04 # entries[0].bucket_stats[1].byte_count
2100 28 # entries[0].length
2200 00 # pad
2300 00 00 01 # entries[0].group_id
2400 00 00 08 # entries[0].ref_count
2500 00 00 00 # pad
2600 00 00 00 00 00 00 10 # entries[0].packet_count
2700 00 00 00 00 00 00 20 # entries[0].byte_count
2800 00 00 14 # entries[0].duration_sec
2900 00 00 64 # entries[0].duration_nsec
30-- python
31ofp.message.group_stats_reply(
32 xid=0x12345678,
33 flags=0,
34 entries=[
35 ofp.group_stats_entry(
36 group_id=1,
37 ref_count=8,
38 packet_count=16,
39 byte_count=32,
40 duration_sec=20,
41 duration_nsec=100,
42 bucket_stats=[
43 ofp.bucket_counter(packet_count=1, byte_count=2),
44 ofp.bucket_counter(packet_count=3, byte_count=4)]),
45 ofp.group_stats_entry(
46 group_id=1,
47 ref_count=8,
48 packet_count=16,
49 byte_count=32,
50 duration_sec=20,
51 duration_nsec=100,
52 bucket_stats=[])])