of1.2: fix OFPFlowRemoved parser
Fix the following: ryu/ofproto/ofproto_v1_2_parser.py", line 1701, in parser type_, length = struct.unpack_from('!HH', buf, offset) TypeError: unpack_from() argument 1 must be string or read-only buffer, not bytearray Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
3c339e77cc
commit
b3e491349a
@ -273,7 +273,7 @@ class OFPFlowRemoved(MsgBase):
|
||||
offset = (ofproto_v1_2.OFP_FLOW_REMOVED_SIZE -
|
||||
ofproto_v1_2.OFP_MATCH_SIZE)
|
||||
|
||||
msg.match = OFPMatch.parser(buf, offset)
|
||||
msg.match = OFPMatch.parser(msg.buf, offset)
|
||||
|
||||
return msg
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user