2013/10/17 FUJITA Tomonori <[email protected]>

> Hi,
>
> On Wed, 16 Oct 2013 14:30:55 -0400
> Chen Chen <[email protected]> wrote:
>
> > I realized that when I instantiated OFPActionOutPut, the max_len is
> default
> > to 0. So I manually assigned a non-zero value to itand it works perfectly
> > for Packet_In message.
> > So thanks a lot for your help!
> >
> > As I am new to ryu and openflow, it would be great if there were an
> example
> > mentioning max_len, or a warning when max_len is set to 0. I assume
>
> API doc mentions it.
>
>
> http://ryu.readthedocs.org/en/latest/ofproto_v1_2_ref.html#action-structures
>
> Please send a patch if you think that it could be improved.
>
> Thanks,
>
>

I was also mistaken in it and made time useless.
Therefore I feel that it is better to change a default value.

Is it like this…? (RFC because I do not know that this is excellent)
------------------------------
    def __init__(self, port, max_len=ofproto_v1_3.OFPCML_NO_BUFFER,
                 type_=None, len_=None):
        super(OFPActionOutput, self).__init__()
        self.port = port
        self.max_len = max_len if port == ofproto_v1_3.OFPP_CONTROLLER else
0
------------------------------


>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to