From 6796ffc9fa703df7827b84e4ba9f53639853d071 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 19 Jun 2013 15:09:16 +0900 Subject: of13 fix OFPGroupFeaturesStats parser Signed-off-by: YAMAMOTO Takashi Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_3_parser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3