Thankyou Yi and iwase, it helps me
On Thu, May 21, 2015 at 4:19 PM, Yusuke Iwase <[email protected]>
wrote:
> Hi Vinllen,
>
> On 2015年05月21日 16:44, Vinllen Chen wrote:
> > Hi, Dear all;
> >
> > When i read the source code of SimpleSwitch, i found that the
> function which call the @set_ev_cls(ofp_event.EventOFPPacketIn,
> MAIN_DISPATCHER) will receive PacketIn message. My question is what's the
> resule if i use more than one function to call the
> @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER) . Does all of them
> will receive the copy of PacketIn message ?
>
> Yes.
> You can add @set_ev_cls() decorator to more than one function in your
> RyuApp,
> and the messages are all the same.
>
> e.g.)
> @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
> def _packet_in_handler_1(self, ev):
> msg = ev.msg # the same with below
> ...
>
> @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)
> def _packet_in_handler_2(self, ev):
> msg = ev.msg # the same with above
> ...
>
> Thanks,
> Iwase
>
> >
> > Best regards,
> > Vinllen
> >
> >
> >
> ------------------------------------------------------------------------------
> > One dashboard for servers and applications across Physical-Virtual-Cloud
> > Widest out-of-the-box monitoring support with 50+ applications
> > Performance metrics, stats and reports that give you Actionable Insights
> > Deep dive visibility with transaction tracing using APM Insight.
> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> >
> >
> >
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
> >
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel