diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-06-19 15:09:16 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-06-20 06:14:39 +0900 |
commit | 6796ffc9fa703df7827b84e4ba9f53639853d071 (patch) | |
tree | b0575c7a435a8825db6bdb108a3f8e63461b490c | |
parent | 633cb455f17f3bfe77d3907a40efe87a3c5e962b (diff) |
of13 fix OFPGroupFeaturesStats parser
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_3_parser.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 12c41df5..6ab9e1a5 100644 --- a/ryu/ofproto/ofproto_v1_3_parser.py +++ b/ryu/ofproto/ofproto_v1_3_parser.py @@ -2379,7 +2379,11 @@ class OFPGroupFeaturesStats(collections.namedtuple('OFPGroupFeaturesStats', ( def parser(cls, buf, offset): group_features = struct.unpack_from( ofproto_v1_3.OFP_GROUP_FEATURES_PACK_STR, buf, offset) - stats = cls(*group_features) + types = group_features[0] + capabilities = group_features[1] + max_groups = list(group_features[2:6]) + actions = list(group_features[6:10]) + stats = cls(types, capabilities, max_groups, actions) stats.length = ofproto_v1_3.OFP_GROUP_FEATURES_SIZE return stats |