of1.2: fix OFAActionCopyTtlOut and OFPActionCopyTtlIn's parsers

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-07-05 14:30:03 +09:00
parent f132d53fb1
commit 8de8d653cc

View File

@ -631,7 +631,8 @@ class OFPActionCopyTtlOut(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()
@ -643,7 +644,8 @@ class OFPActionCopyTtlIn(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()