Hi, The App you attached seems not be written by Ryu-devel team. Sorry, I don't know further...
FYI, This App seems to be designed to install flows reactively against Packet-In messages from switches. I guess it is difficult to determine which packet should be forwarded to the registered servers without Packet-In messages and FlowMod messages. Did you try contacting to the authors of this App? Thanks, Iwase On 2016年11月20日 03:49, Mohamed Ibrahem wrote: > hello guys, > how can i modify this code to forward packets directly without use OFPFlowMod > and instructions and just use actions only. > https://github.com/whatever4711/ryu-starter-kit/blob/master/stateless_lb.py > i have modified the code but it make no sense, please help me to solve this > problem? > my modification is :- > > if self.rewrite_ip_header: > actions = > [ofp_parser.OFPActionSetField(eth_dst=selected_server_mac), > > ofp_parser.OFPActionSetField(ipv4_dst=selected_server_ip), > ofp_parser.OFPActionOutput(selected_server_outport) ] > else: > actions = > [ofp_parser.OFPActionSetField(eth_dst=selected_server_mac), > ofp_parser.OFPActionOutput(selected_server_outport) ] > > out = ofp_parser.OFPPacketOut(datapath=datapath,buffer_id=msg.buffer_id, > in_port=in_port, actions=actions) > > datapath.send_msg(out) > > thanks in advance > > > ------------------------------------------------------------------------------ > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
