of1.2: fix OFPActionPopVlan parser

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-07-09 02:18:53 +09:00
parent a8938cb61e
commit cb41bff9a5

View File

@ -696,7 +696,8 @@ class OFPActionPopVlan(OFPAction):
@classmethod
def parser(cls, buf, offset):
msg_pack_into(ofproto_v1_2.OFP_ACTION_HEADER_PACK_STR, buf, offset)
(type_, len_) = struct.unpack_from(
ofproto_v1_2.OFP_ACTION_HEADER_PACK_STR, buf, offset)
return cls()