Hi, Yi, Do you kown the reason that the buffer_id of message is always 0 ? Does it means that the switch disable the buffering ?
Thankyou verymuch. On Wed, Aug 19, 2015 at 3:34 PM, Vinllen Chen <cvinl...@gmail.com> wrote: > Aha, It helped me, thankyou Yi ^_^ > > On Wed, Aug 19, 2015 at 3:13 PM, Yi Tseng <a86487...@gmail.com> wrote: > >> Hi >> >> "data" should be None if you want to use buffer id. >> >> so the code should look like this: >> >> out = datapath.ofproto_parser.OFPPacketOut( >> datapath = datapath, >> buffer_id = msg.buffer_id, >> in_port = datapath.ofproto.OFPP_CONTROLLER, >> actions = actions >> ) >> >> -- >> Yi >> >> 2015-08-19 15:02 GMT+08:00 Vinllen Chen <cvinl...@gmail.com>: >> >>> Hi, all, >>> >>> I want to send packet-out message with buffer_id to let the packet to be >>> reprocess to rego through the pipeline: >>> actions = [] >>> >>> actions.append(datapath.ofproto_parser.OFPActionOutput( >>> datapath.ofproto.OFPP_TABLE) >>> ) >>> >>> out = datapath.ofproto_parser.OFPPacketOut( >>> datapath = datapath, >>> buffer_id = msg.buffer_id, >>> #buffer_id = datapath.ofproto.OFP_NO_BUFFER, >>> in_port = datapath.ofproto.OFPP_CONTROLLER, >>> actions = actions, >>> data = pkt.data >>> ) >>> datapath.send_msg(out) >>> >>> The error shows: >>> File >>> "/usr/local/python2.7.6/lib/python2.7/site-packages/ryu/ofproto/ofproto_v1_3_parser.py", >>> line 2384, in _serialize_body >>> assert self.buffer_id == 0xffffffff >>> >>> It looks like the buffer_id must be NO_BUFFER, but the packet with >>> specify buffer_id is allowed in openflow spec. >>> So how to solve this problem ? Thankyou >>> -- >>> Best Regards, >>> Vinllen >>> >>> >>> ------------------------------------------------------------------------------ >>> >>> _______________________________________________ >>> Ryu-devel mailing list >>> Ryu-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/ryu-devel >>> >>> >> >> >> -- >> Yi Tseng (a.k.a Takeshi) >> Taiwan National Chiao Tung University >> Department of Computer Science >> W2CNLab >> >> http://blog.takeshi.tw >> > > > > -- > Best Regards, > Vinllen > -- Best Regards, Vinllen
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel