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 <[email protected]> --- ryu/services/protocols/bgp/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/services/protocols/bgp/base.py b/ryu/services/protocols/bgp/base.py index ed662d0..a8ef621 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() -- 2.5.0 ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
