So..
My ryu.conf file looks like default and I'm running this BGP code as a Ryu 
application.

I'm using the app_manager.RyuApp class to make it a Ryu application and running 
along with a simple switch on ryu-manager.



Greetings.


________________________________
De: Victor Orlikowski <[email protected]>
Enviado: sexta-feira, 19 de agosto de 2016 12:42
Para: Paulo Sérgio
Cc: [email protected]
Assunto: Re: [Ryu-devel] BGPSpeaker - shutdown error. Why is this happening?

On Aug 18, 2016, at 6:47 PM, Paulo Sérgio <[email protected]> wrote:
>
> Right after the shutdown method call, it returns the following error:
> failed to write to socket
> Connection lost as protocol is no longer active
> hub: uncaught exception: Traceback (most recent call last):
>   File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 54, in 
> _launch
>     return func(*args, **kwargs)
>   File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", 
> line 97, in __call__
>     self.ofp_ssl_listen_port)
>   File "/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", 
> line 120, in server_loop
>     datapath_connection_factory)
>   File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 117, in 
> __init__
>     self.server = eventlet.listen(listen_info)
>   File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 43, 
> in listen
>     sock.bind(addr)
>   File "/usr/lib/python2.7/socket.py", line 228, in meth
>     return getattr(self._sock,name)(*args)
> error: [Errno 98] Address already in use

So...how are you invoking your local version of the example code?
What does your ryu.conf look like?

This *looks* like the OpenFlow controller portion of the code is being 
instantiated that way.
Otherwise, the BGP protocol code should not be loading the OpenFlow portions at 
all, that I can tell.

Best,
Victor
--
Victor J. Orlikowski <> vjo@[cs.]duke.edu

------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to