Hi,

   I am trying to write a script which could generate a packet with
multiple PACKET_OUT messages bundled within it. For example something like
this:

[image: Inline image 1]

I have this sample script which successfully generates a single PKT OUT
message.




















*@set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER)    def
_packet_in_handler(self, ev):        msg = ev.msg        datapath =
msg.datapath        ofproto = datapath.ofproto        parser =
datapath.ofproto_parser        in_port = msg.match['in_port']        if
(in_port == 3):           out_port = 2           in_port =
ofproto.OFPP_CONTROLLER        else:           out_port = 3        actions
= [parser.OFPActionOutput(out_port)]        data = msg.data        out =
parser.OFPPacketOut(datapath=datapath,
buffer_id=msg.buffer_id,                                  in_port=in_port,
actions=actions, data=data)        datapath.send_msg(out)*
  If i change the "actons" & call datapath.send() again, it ends up
generating 2 PKT OUT messages in different packets. How do i change the
code so that it bundles them together into one packet. Can you please help
me out?

Thanks in advance
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to