From: Alan Quillin <[email protected]>

When a single peer is specified for BGPSpeaker the server value was not
being set upon return.

Signed-off-by: Alan Quillin <[email protected]>
---
 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 616315f..c5a302c 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,
-- 
2.2.2


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to