Hi,

On Wed, 6 Aug 2014 10:40:55 +0100
Bruce SUN <[email protected]> wrote:

> Yes. I have written this function. However, I don't know where/how my
> application calls this function. I want to know whether I need register an
> event. Then controller can directly send this message after getting the
> featureReply message.
> Now, if I call send_set_config in the switch_features_handler, there will
> be two set_config messages sent to a switch. One is sent by RYU framework
> and another is sent by RYU application.
> What I want to do is how to override set_config of YU framework by
> set_config of RYU application.

I think that the easiest way is sending an OFPSetCOnfig message in
your handler for EventOFPStateChange. You can overwrite the
configuration that an OFPsetConfig message sent by Ryu did.

You can find example code on how to use EventOFPStateChange:

http://osrg.github.io/ryu-book/en/html/traffic_monitor.html#implementation-of-traffic-monitor


Thanks,

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

Reply via email to