summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlan Quillin <alanquillin@gmail.com>2015-02-05 12:02:32 -0600
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-08 10:16:41 +0900
commit973d43f6fb853226bd84ff2b80f23fd3148f766b (patch)
tree5e0e685cf4f53599d1522bccc2b543d6820b826e
parent79774a3fe96ec6dead1e935cea4139e99586bf3e (diff)
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 <alanquillin@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/base.py4
1 files 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,