Your expectation sounds correct. Posting your code would help.

thanks,

On Tue, Jul 02, 2013 at 01:54:20PM +0100, Alan Barr wrote:
> Hello all,
> 
>  
> 
> I was wondering if someone could clarify if what I am seeing is expected
> behaviour.
> 
> I am new to Ryu and currently trying to familiarise myself with it.
> 
> In one of my test applications I have registered four different methods for
> EventOFPEchoRequest, one method for each of HANDSHAKE, CONFIG, MAIN and DEAD
> dispatchers.
> 
> When this event is triggered, all of these methods are called, not just the 
> one
> registered for the appropriate state.
> 
>  
> 
> Is this the correct behaviour? I don't have a valid use case of this, I'm just
> trying to better understand Ryu and this was my first test setup. I wasn?t
> expecting this behaviour.
> 
>  
> 
> I was basing this off: 
> 
>  
> 
> ?A decorator for Ryu application to declare an event handler. Decorated method
> will become an event handler. ev_cls is an event class whose instances this
> RyuApp wants to receive. dispatchers argument specifies one of the following
> negotiation phases (or a list of them) for which events should be generated 
> for
> this handler. Note that, in case an event changes the phase, the phase before
> the change is used to check the interest.? 
> https://github.com/osrg/ryu/wiki/API
> 
>  
> 
> I'm on commit a66bcf031d782c25b987431feb76251970158573.
> 
>  
> 
> Kind Regards,
> 
> Alan Barr
> 
>  
> 

> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel


-- 
yamahata

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to