os-ken/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
..
__init__.py Switch to Apache 2.0 license 2012-04-06 08:38:45 +09:00
conf_switch.py python3: Adapt to new iterator names 2015-06-20 21:19:12 +09:00
controller.py controller: Wait for switch to disconnect connection 2018-03-26 22:11:32 +09:00
dpset.py confroller/dpset: Add usage example of instantiation 2018-01-17 08:46:52 +09:00
event.py *: Apply autopep8 2017-12-17 19:27:47 +09:00
handler.py handler: Fix for frozen builds 2016-08-25 14:25:40 +09:00
mac_to_network.py python 3: Replace deprecated logging.warn with logging.warning 2016-06-18 13:53:50 +09:00
mac_to_port.py add missing super().__init__() 2012-05-01 08:31:40 +09:00
network.py *: Apply autopep8 2017-12-17 19:27:47 +09:00
ofp_api.py *: Reject Binary Represented IP Addresses 2017-11-16 09:15:12 +09:00
ofp_event.py *: Apply autopep8 2017-12-17 19:27:47 +09:00
ofp_handler.py ofproto: Encode data field on OFPErrorMsg 2018-03-26 22:11:39 +09:00
tunnels.py *: Apply autopep8 2017-12-17 19:27:47 +09:00