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.
Thanks for your help
Best Regards,
Bruce
On Wed, Aug 6, 2014 at 3:04 AM, Minoru TAKAHASHI <
[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]
> > 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