mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-05 12:26:11 +02:00
of1.3: fix OFPPortStatus parser
A correction same as OF1.2. Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
4dd3028d9c
commit
95963e3ced
@ -1405,9 +1405,9 @@ class OFPPortStatus(MsgBase):
|
||||
def parser(cls, datapath, version, msg_type, msg_len, xid, buf):
|
||||
msg = super(OFPPortStatus, cls).parser(datapath, version, msg_type,
|
||||
msg_len, xid, buf)
|
||||
(msg.reason,) = struct.unpack_from(
|
||||
msg.reason = struct.unpack_from(
|
||||
ofproto_v1_3.OFP_PORT_STATUS_PACK_STR, msg.buf,
|
||||
ofproto_v1_3.OFP_HEADER_SIZE)
|
||||
ofproto_v1_3.OFP_HEADER_SIZE)[0]
|
||||
msg.desc = OFPPort.parser(msg.buf,
|
||||
ofproto_v1_3.OFP_PORT_STATUS_DESC_OFFSET)
|
||||
return msg
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user