On Fri, 20 Jul 2018 10:23:54 +0900,
Marcio wrote:
> 
> I think not. I'd like to know if is possible the BGPSpeaker receive events
> generated by other sources and receive data from it.
> 
> Let me do an example. While BGP is running I need to have another
> task(could be in same code or in another .py file) running to verify
> something and when a specific thing happens that task needs to call the
> BGPSpeaker, that is running, and ask it to perform some stuff.
> 
> How could I achieve this?

RyuApp such as MyBGPApp in the example is basically an eventlet
thread. Your code can be packaged as a RyuApp and communicate with
BGPSpeaker by passing Events between.


> Em Qui, 19 de jul de 2018 19:14, Yusuke Iwase <iwase.yusu...@gmail.com>
> escreveu:
> 
> > Hi Marcio,
> >
> > Does the following document help you?
> >
> > http://ryu.readthedocs.io/en/latest/app/bgp_application.html
> >
> >
> > Thanks,
> >
> > Iwase
> >
> > 2018/07/19 23:58、Marcio <marciovinicius.san...@uniriotec.br>のメール:
> >
> > Dear,
> >
> > I have a question using the BGPSpeaker. I instantiate a BGPSpeaker using
> > the example code in Ryu Documentation.
> >
> > I want to know how could I perform another task while BGP is running and
> > when I achieve some results I need to request BGPSpeaker to perform some
> > tasks.
> >
> > Could you help me with it?
> >
> > Is it possible to perform another tasks while my BGPSpeaker class is
> > running? A did my code after the init method but it is never executed
> > because the BGPSpeaker is running.
> >
> > Is there a way to from other .py codes, when an event occurs, to pass some
> > data to my ryu app? If yes, how could I do it?
> >
> > Additionally,
> >
> >
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > Ryu-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
> >

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to