diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-03-06 15:52:23 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-03-26 22:11:39 +0900 |
commit | 4e10ba44381ca5fa095b5cfc69e7c6fc407642a8 (patch) | |
tree | 2eac68307d00fee7ab49acc84b423bc48a5decb6 /tools | |
parent | 3003d475d268efbff0fa2df56104968e71761ca8 (diff) |
ofproto: Encode data field on OFPErrorMsg
Currently, when Ryu failed to negotiate the OpenFlow version with a
switch, Ryu will send the OFPT_ERROR message with an error reason on its
data field.
But on Python 3, error reason string is a str type value and required to
be encoded into a bytes type value, otherwise causes an exception when
sending the message.
This patch fixes to encode the given str value into a bytes type value
in OFPErrorMsg.__init__() and solves this problem.
Signed-off-by: William Fisher <william.w.fisher@gmail.com>
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions