From 936635a1a9642fd7d22179f09a85708944994159 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 20 May 2012 06:43:56 +0900 Subject: [PATCH] fix OFPQueueGetConfigReply parser msg.port should not be a tuple. Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_0_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index 17e8b3a3..a04479c3 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py +++ b/ryu/ofproto/ofproto_v1_0_parser.py @@ -1232,7 +1232,7 @@ class OFPQueueGetConfigReply(MsgBase): datapath, version, msg_type, msg_len, xid, buf) offset = ofproto_v1_0.OFP_HEADER_SIZE - msg.port = struct.unpack_from( + (msg.port,) = struct.unpack_from( ofproto_v1_0.OFP_QUEUE_GET_CONFIG_REPLY_PACK_STR, msg.buf, offset) msg.queues = []