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 07 # stats_type |
| 6 | 00 00 # flags |
| 7 | 00 00 00 00 # pad |
| 8 | 00 68 # entries[0].length |
| 9 | 03 # entries[0].group_type |
| 10 | 00 # entries[0].pad |
| 11 | 00 00 00 01 # entries[0].group_id |
| 12 | 00 30 # entries[0].buckets[0].len |
| 13 | 00 01 # entries[0].buckets[0].weight |
| 14 | 00 00 00 05 # entries[0].buckets[0].watch_port |
| 15 | ff ff ff ff # entries[0].buckets[0].watch_group |
| 16 | 00 00 00 00 # entries[0].pad |
| 17 | 00 00 # entries[0].buckets[0].actions[0].type |
| 18 | 00 10 # entries[0].buckets[0].actions[0].len |
| 19 | 00 00 00 05 # entries[0].buckets[0].actions[0].port |
| 20 | 00 00 # entries[0].buckets[0].actions[0].max_len |
| 21 | 00 00 00 00 00 00 # entries[0].pad |
| 22 | 00 00 # entries[0].buckets[0].actions[1].type |
| 23 | 00 10 # entries[0].buckets[0].actions[1].len |
| 24 | 00 00 00 06 # entries[0].buckets[0].actions[1].port |
| 25 | 00 00 # entries[0].buckets[0].actions[1].max_len |
| 26 | 00 00 00 00 00 00 # entries[0].pad |
| 27 | 00 30 # entries[0].buckets[1].len |
| 28 | 00 01 # entries[0].buckets[1].weight |
| 29 | 00 00 00 06 # entries[0].buckets[1].watch_port |
| 30 | ff ff ff ff # entries[0].buckets[1].watch_group |
| 31 | 00 00 00 00 # entries[0].pad |
| 32 | 00 00 # entries[0].buckets[1].actions[0].type |
| 33 | 00 10 # entries[0].buckets[1].actions[0].len |
| 34 | 00 00 00 05 # entries[0].buckets[1].actions[0].port |
| 35 | 00 00 # entries[0].buckets[1].actions[0].max_len |
| 36 | 00 00 00 00 00 00 # entries[0].pad |
| 37 | 00 00 # entries[0].buckets[1].actions[1].type |
| 38 | 00 10 # entries[0].buckets[1].actions[1].len |
| 39 | 00 00 00 06 # entries[0].buckets[1].actions[1].port |
| 40 | 00 00 # entries[0].buckets[1].actions[1].max_len |
| 41 | 00 00 00 00 00 00 # entries[0].pad |
| 42 | 00 08 # entries[1].length |
| 43 | 03 # entries[1].group_type |
| 44 | 00 # entries[1].pad |
| 45 | 00 00 00 02 # entries[1].group_id |
| 46 | -- python |
| 47 | ofp.message.group_desc_stats_reply( |
| 48 | xid=0x12345678, |
| 49 | flags=0, |
| 50 | entries=[ |
| 51 | ofp.group_desc_stats_entry( |
Rich Lane | 35e7ac7 | 2013-10-15 10:36:10 -0700 | [diff] [blame^] | 52 | group_type=ofp.OFPGT_FF, |
Rich Lane | c9fc57d | 2013-05-16 16:39:12 -0700 | [diff] [blame] | 53 | 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 Lane | 35e7ac7 | 2013-10-15 10:36:10 -0700 | [diff] [blame^] | 69 | ofp.group_desc_stats_entry(group_type=ofp.OFPGT_FF, group_id=2, buckets=[])]) |