From d3d5d8a5982a7b948efb9934228019e862477b58 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Sun, 20 Jul 2014 17:16:02 +0900 Subject: [PATCH] bgp: fix bug in net_ctrl listen_tcp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit due to fdce89a0, _listen_tcp returns tuple. Reported-by: 坪井俊樹 Signed-off-by: ISHIDA Wataru Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/net_ctrl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ryu/services/protocols/bgp/net_ctrl.py b/ryu/services/protocols/bgp/net_ctrl.py index 47cf9d72..fec29ee7 100644 --- a/ryu/services/protocols/bgp/net_ctrl.py +++ b/ryu/services/protocols/bgp/net_ctrl.py @@ -336,7 +336,8 @@ class _NetworkController(FlexinetPeer, Activity): sock_addr = (apgw_rpc_bind_ip, apgw_rpc_bind_port) LOG.debug('NetworkController started listening for connections...') - server_thread = self._listen_tcp(sock_addr, self._start_rpc_session) + server_thread, socket = self._listen_tcp(sock_addr, + self._start_rpc_session) self.pause(0) server_thread.wait()