of1.2: fix OFAActionCopyTtlOut and OFPActionCopyTtlIn's parsers
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
f132d53fb1
commit
8de8d653cc
@ -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()
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user