(2014年08月06日 18:40), Bruce SUN wrote:
> Hi Minoru,
> 
> 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.

Hi Bruce,

> Override set_config of RYU framework by set_config of RYU application.
As far as I know, it is impossible.
("set_config of RYU framework" is one of Ryu applications.This app is 
automatically started.)
https://github.com/osrg/ryu/blob/master/ryu/controller/ofp_handler.py

>I want to modify the miss_send_len in the set_config message,
It's a special way, there is a way to change the settings of the RYU framework 
side.
https://github.com/osrg/ryu/blob/master/ryu/controller/ofp_handler.py#L211

> 
> Thanks for your help
> 
> Best Regards,
> Bruce
> 
> 
> On Wed, Aug 6, 2014 at 3:04 AM, Minoru TAKAHASHI <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     (2014年08月05日 22:50), Bruce SUN wrote:
>     > Hi,
>     >
>     > I want to modify the miss_send_len in the set_config message, but I 
> don't know what is the event id of this message? Like 
> ofp_event.EventOFPSwitchFeatures? Could you tell me how to register the 
> message or call it directly?
>     > Thanks a lot
> 
>     Hi Bruce,
>     How to send "send_set_config " message is as follows.
> 
>     Example:
>         def send_set_config(self, datapath):
>             ofp = datapath.ofproto
>             ofp_parser = datapath.ofproto_parser
> 
>             req = ofp_parser.OFPSetConfig(datapath, ofp.OFPC_FRAG_NORMAL, 256)
>             datapath.send_msg(req)
> 
>     If you need any further information, please refer to the following.
> 
>     OpenFlow protocol API Reference:
>         http://ryu.readthedocs.org/en/latest/ofproto_ref.html
>          - OpenFlow v1.2/3/4 Messages and Structures
>           - Controller-to-Switch Messages
>            - Switch Configuration
> 
>     >
>     > Best Regards,
>     > Bruce
>     >
>     >
>     > 
> ------------------------------------------------------------------------------
>     > Infragistics Professional
>     > Build stunning WinForms apps today!
>     > Reboot your WinForms applications with our WinForms controls.
>     > Build a bridge from your legacy apps to the future.
>     > 
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>     >
>     >
>     >
>     > _______________________________________________
>     > Ryu-devel mailing list
>     > [email protected] <mailto:[email protected]>
>     > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>     >
> 
> 

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to