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