fix OFPQueueGetConfigReply parser

msg.port should not be a tuple.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-05-20 06:43:56 +09:00
parent fcc066d9cb
commit 936635a1a9

View File

@ -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 = []