From 973d43f6fb853226bd84ff2b80f23fd3148f766b Mon Sep 17 00:00:00 2001 From: Alan Quillin Date: Thu, 5 Feb 2015 12:02:32 -0600 Subject: bgp: Fixed error in bgp implementation with single peer When a single peer is specified for BGPSpeaker the server value was not being set upon return. Signed-off-by: Alan Quillin Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/services/protocols/bgp/base.py b/ryu/services/protocols/bgp/base.py index 616315f6..c5a302c5 100644 --- a/ryu/services/protocols/bgp/base.py +++ b/ryu/services/protocols/bgp/base.py @@ -384,8 +384,8 @@ class Activity(object): count += 1 else: - self._spawn(name, self._listen_socket_loop, - listen_sockets[sa], conn_handle) + server = self._spawn(name, self._listen_socket_loop, + listen_sockets[sa], conn_handle) return server, listen_sockets def _connect_tcp(self, peer_addr, conn_handler, time_out=None, -- cgit v1.2.3