ryu/ryu/controller
IWASE Yusuke 4e10ba4438 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>
2018-03-26 22:11:39 +09:00
..
2012-04-06 08:38:45 +09:00
2017-12-17 19:27:47 +09:00
2016-08-25 14:25:40 +09:00
2012-05-01 08:31:40 +09:00
2017-12-17 19:27:47 +09:00
2017-12-17 19:27:47 +09:00
2017-12-17 19:27:47 +09:00