Hi, all, I am trying to modify destination IP address by using OFPActionNwDst in ryu-maanger based on OpenFlow10 but it dose not work. Can anyone please help me to understand why OFPActionNwDst does not work in OFPPacketOutput and how it can be applied properly?
In this case, if ryu-manager received the packet those destination IP is 10.0.0.10, it tried to change the dst_ip into 10.0.0.3. However, OFPActionOutput was only applied (setting output) and OFPActionSetNwDst was not applied in the output packet. (Emulator) sudo mn --topo single,3 --controller remote --switch ovs,protocols=OpenFlow10 (ryu-manager) @set_ev_cls(ofp_event.EventOFPPacketIn, MAIN_DISPATCHER) def _packet_in_handler(self, ev): msg = ev.msg dp = msg.datapath ofp = dp.ofproto ofp_parser = dp.ofproto_parser ... actions = [ofp_parser.OFPActionSetNwDst('10.0.0.3'), ofp_parser.OFPActionOutput(out_port)] out = ofp_parser.OFPPacketOut(datapath=dp, buffer_id = msg.buffer_id, in_port = msg.in_port, actions = actions, data = msg.data) dp.send_msg(out) Thank you for your help in advance. _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel