Hi, What does "1(one) parameter" mean? The set value of OFPActionPushMpls? If so, the set value is "ethertype". https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_v1_3_parser.py#L3128 And, the OpenFlow message contains the "ethertype" value.
thanks, On 2016年01月07日 20:05, Pynbiang Hadem wrote: > Thanks Minoru, ryu-devel > > I want to pass *1(one) parameter* from ryu to openvswitch from a function > such as "*OFPActionPushMpls(OFPAction)*" in ryu to a function such as > "*flow_push_mpls*" in openvswitch. Kindly suggests how i can achieve this. > > Thanks > Regards > Hadem > > On Thu, Jan 7, 2016 at 8:22 AM, Minoru TAKAHASHI <takahashi.mino...@gmail.com > <mailto:takahashi.mino...@gmail.com>> wrote: > > Hi, > > > How does the Ryu class *OFPActionPushMpls(OFPAction)* communicate with > OpenvSwitch *flow_push_mpls* (in openvswitch/lib/flow.c) class function. > > In other words how does ryu calls the *flow_push_mpls* function in > *openvswitch*?. > > It calls by OpenFlow message. > (OpenFlow is an open standard network protocol that defined by Open > Networking Foundation(https://www.opennetworking.org).) > > Ryu generate and send the OpenFlow message by using > OFPActionPushMpls(OFPAction) class and other classes. > Then, the OpenvSwitch receive the OpenFlow message, and the OpenvSwitch > calls own flow_push_mpls function. > > > How is the label value, TTL, mpls_tc and bos get inserted into the > first mpls label?. > > If you want to know the details of flow_push_mpls function of > OpenvSwitch, I recommend that you access OVS-dev. > > thanks, > > On 2016年01月06日 21:28, Pynbiang Hadem wrote: > > Dear all, > > > > How does the Ryu class *OFPActionPushMpls(OFPAction)* communicate with > OpenvSwitch *flow_push_mpls* (in openvswitch/lib/flow.c) class function. In > other words how does ryu calls the *flow_push_mpls* function in > *openvswitch*?. How is the label value, TTL, mpls_tc and bos get inserted > into the first mpls label?. > > I could not find the appropriate coding in the source codes. > > > > Pls help. > > > > Regards > > Hadem. > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > Ryu-devel mailing list > > Ryu-devel@lists.sourceforge.net <mailto:Ryu-devel@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > > > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel