Murat Parlakisik | f95672c | 2016-12-05 00:53:17 -0800 | [diff] [blame] | 1 | -- binary |
| 2 | 06 13 # version, type |
| 3 | 00 40 # length |
| 4 | 12 34 56 78 # xid |
| 5 | 00 07 # multipart message type (OFPMP_GROUP_DESC) |
| 6 | 00 01 # flags (OFPMPF_REPLY_MORE) |
| 7 | 00 00 00 00 # pad |
| 8 | |
| 9 | 00 30 # length |
| 10 | 00 # type |
| 11 | 00 # pad |
| 12 | 00 00 00 01 # group_id |
| 13 | 00 20 # bucket_array_len |
| 14 | 00 00 00 00 00 00 # pad |
| 15 | |
| 16 | 00 20 # bucket_len |
| 17 | 00 18 # action_array_len |
| 18 | ff ff ff fd # bucket_id |
| 19 | |
| 20 | 00 00 # ofp_action[0].type (OFPAT_OUTPUT) |
| 21 | 00 10 # ofp_action[0].length |
| 22 | 00 00 00 01 # port |
| 23 | 00 03 # max_len |
| 24 | 00 00 00 00 00 00 # pad |
| 25 | |
| 26 | 00 16 # ofp_action[0].type (OFPAT_GROUP) |
| 27 | 00 08 # ofp_action[0].length |
| 28 | 00 00 00 01 # group_id |
| 29 | |
| 30 | # no group_bucket_properties after this, since it's an ALL group |
| 31 | |
| 32 | -- java |
| 33 | builder |
| 34 | .setXid(0x12345678) |
| 35 | .setFlags(ImmutableSet.<OFStatsReplyFlags>of(OFStatsReplyFlags.REPLY_MORE)) |
| 36 | .setEntries(ImmutableList.<OFGroupDescStatsEntry>of(factory.buildGroupDescStatsEntry() |
| 37 | .setGroupType(OFGroupType.ALL) |
| 38 | .setGroup(OFGroup.of(1)) |
| 39 | .setBuckets(ImmutableList.<OFBucket>of(factory.buildBucket() |
| 40 | .setBucketId(OFGroupBucket.BUCKET_FIRST) |
| 41 | .setActions(ImmutableList.<OFAction>of( |
| 42 | factory.actions().output(OFPort.of(1),3), |
| 43 | factory.actions().group(OFGroup.of(1)))) |
| 44 | .build())) |
| 45 | .build())) |
| 46 | |