Re: [Ryu-devel] Event lost

2017-01-26 Thread Yiwen Shen
Hi, I just found the solution. I tried your other solution using send_event and I realized I had the wrong name for the first argument, but after I replaced it with the right name, the print message appeared. Thanks, Yiwen On Thu, Jan 26, 2017 at 11:43 AM, Yiwen Shen wrote: > Hi, > > I replace

Re: [Ryu-devel] Event lost

2017-01-26 Thread Yiwen Shen
Hi, I replaced send_event with send_event_to_observers and now I no longer see the EVENT LOST, but the function North_CrossDomainTrafficRequestEvent() that is supposed to run when it receives the event is still not running, because I don't see the print message. The code for that is : @set_ev_cls

Re: [Ryu-devel] Event lost

2017-01-25 Thread Iwase Yusuke
Hi, How about using "send_event_to_observers" instead? https://github.com/iwaseyusuke/ryu/blob/master/ryu/base/app_manager.py#L305-L326 If you want to use "send_event", the first argument must be the name of RyuApp which is observing the given event. OTOH, "send_event_to_observers" will detect

[Ryu-devel] Event lost

2017-01-25 Thread Yiwen Shen
Hi, I'm trying to start my Ryu system by sending an event from one app to another, but it keeps saying EVENT LOST when I use --verbose. I understand from another thread that we need to wait a bit for the event pipeline to open, so I put hub.sleep(5) but the problem persists. My original code was: