of1.2: pretty OFPGetConfigReply parser

Make OFPGetConfigReply parser consistent with the rest

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-08-06 08:26:22 +09:00
parent b49ccfc11b
commit 1eb52f7671

View File

@ -202,7 +202,7 @@ class OFPGetConfigReply(MsgBase):
msg = super(OFPGetConfigReply, cls).parser(datapath, version, msg_type,
msg_len, xid, buf)
msg.flags, msg.miss_send_len = struct.unpack_from(
ofproto_v1_2.OFP_SWITCH_CONFIG_PACK_STR, buf,
ofproto_v1_2.OFP_SWITCH_CONFIG_PACK_STR, msg.buf,
ofproto_v1_2.OFP_HEADER_SIZE)
return msg