summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2016-02-08 17:02:56 +0000
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-02-10 13:35:12 +0900
commit00c7d2918d21ea8cd9afcec2fb1b999ecb00dfd7 (patch)
tree9da64b7f3cb0cb3071944f36ac3d76084541d0ff
parent4f1a4db7a4e980c4c7e8236fb262a448fdca0b1a (diff)
protocols/bgp: Log socket creation error
Helpful to track down why the bgp server is stopping when the user running ryu does not have CAP_NET_BIND_SERVICE. Signed-off-by: Jason Kölker <jason@koelker.net> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/services/protocols/bgp/base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ryu/services/protocols/bgp/base.py b/ryu/services/protocols/bgp/base.py
index ed662d01..a8ef6214 100644
--- a/ryu/services/protocols/bgp/base.py
+++ b/ryu/services/protocols/bgp/base.py
@@ -367,7 +367,9 @@ class Activity(object):
sock.bind(sa)
sock.listen(50)
listen_sockets[sa] = sock
- except socket.error:
+ except socket.error as e:
+ LOG.error('Error creating socket: %s', e)
+
if sock:
sock.close()