blob: 5e95a677d42d0c746ac8ba13af94bcb632a7a494 [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 07 # stats_type
600 00 # flags
700 00 00 00 # pad
800 68 # entries[0].length
903 # entries[0].group_type
1000 # entries[0].pad
1100 00 00 01 # entries[0].group_id
1200 30 # entries[0].buckets[0].len
1300 01 # entries[0].buckets[0].weight
1400 00 00 05 # entries[0].buckets[0].watch_port
15ff ff ff ff # entries[0].buckets[0].watch_group
1600 00 00 00 # entries[0].pad
1700 00 # entries[0].buckets[0].actions[0].type
1800 10 # entries[0].buckets[0].actions[0].len
1900 00 00 05 # entries[0].buckets[0].actions[0].port
2000 00 # entries[0].buckets[0].actions[0].max_len
2100 00 00 00 00 00 # entries[0].pad
2200 00 # entries[0].buckets[0].actions[1].type
2300 10 # entries[0].buckets[0].actions[1].len
2400 00 00 06 # entries[0].buckets[0].actions[1].port
2500 00 # entries[0].buckets[0].actions[1].max_len
2600 00 00 00 00 00 # entries[0].pad
2700 30 # entries[0].buckets[1].len
2800 01 # entries[0].buckets[1].weight
2900 00 00 06 # entries[0].buckets[1].watch_port
30ff ff ff ff # entries[0].buckets[1].watch_group
3100 00 00 00 # entries[0].pad
3200 00 # entries[0].buckets[1].actions[0].type
3300 10 # entries[0].buckets[1].actions[0].len
3400 00 00 05 # entries[0].buckets[1].actions[0].port
3500 00 # entries[0].buckets[1].actions[0].max_len
3600 00 00 00 00 00 # entries[0].pad
3700 00 # entries[0].buckets[1].actions[1].type
3800 10 # entries[0].buckets[1].actions[1].len
3900 00 00 06 # entries[0].buckets[1].actions[1].port
4000 00 # entries[0].buckets[1].actions[1].max_len
4100 00 00 00 00 00 # entries[0].pad
4200 08 # entries[1].length
4303 # entries[1].group_type
4400 # entries[1].pad
4500 00 00 02 # entries[1].group_id
46-- python
47ofp.message.group_desc_stats_reply(
48 xid=0x12345678,
49 flags=0,
50 entries=[
51 ofp.group_desc_stats_entry(
Rich Lane35e7ac72013-10-15 10:36:10 -070052 group_type=ofp.OFPGT_FF,
Rich Lanec9fc57d2013-05-16 16:39:12 -070053 group_id=1,
54 buckets=[
55 ofp.bucket(
56 weight=1,
57 watch_port=5,
58 watch_group=0xffffffff,
59 actions=[
60 ofp.action.output(port=5, max_len=0),
61 ofp.action.output(port=6, max_len=0)]),
62 ofp.bucket(
63 weight=1,
64 watch_port=6,
65 watch_group=0xffffffff,
66 actions=[
67 ofp.action.output(port=5, max_len=0),
68 ofp.action.output(port=6, max_len=0)])]),
Rich Lane35e7ac72013-10-15 10:36:10 -070069 ofp.group_desc_stats_entry(group_type=ofp.OFPGT_FF, group_id=2, buckets=[])])