No Worries. I have fixed it but I have a new problem. I managed to set actions to rewrite the payload and send out from the port where the packet is being received(ingress port) but did not work if I'm sending and the packet from the same port where I received from, and if I use other port, the packet is being received.
Cheers, From: [email protected] To: [email protected] Date: Fri, 28 Aug 2015 09:13:37 +0300 CC: [email protected] Subject: Re: [Ryu-devel] Rewrite Flow Entry OpenFlow1.3 Hi Iwase, Thank you for your prompt reply. Yes, the switch supports these. I did matching on those fields and the rule was successfully installed. Here what I have done so far: match.set_dl_type(ether.ETH_TYPE_ARP) match.set_arp_opcode(1) match.set_arp_spa('192.168.10.10') actions = [] actions = actions.append(parser.OFPActionSetFiled(arp_spa='192.168.1.20')) actions = actions.append(parser.OFPActionOutput(ofproto.OFPP_FLOOD)) . . . . It is giving me an error I need to changed all payload of ARP request. > Subject: Re: [Ryu-devel] Rewrite Flow Entry OpenFlow1.3 > To: [email protected] > CC: [email protected] > From: [email protected] > Date: Fri, 28 Aug 2015 14:24:33 +0900 > > Hi, > > On 2015年08月28日 12:15, Talal Alharbi wrote: > > Dear All, > > > > I was looking to have a rule on the switch to rewrite the payload of ARP > > request, which rewrite the packet and send ARP reply without sending the > > packet to the controller. > > Which field does "the payload of ARP request" mean? > > OFPActionSetField can rewrite the fields which are defined in OFPMatch field. > http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPActionSetField > > e.g.) OFPMatch field related to ARP > arp_op Integer 16bit ARP opcode > arp_spa IPv4 address ARP source IPv4 address > arp_tpa IPv4 address ARP target IPv4 address > arp_sha MAC address ARP source hardware address > arp_tha MAC address ARP target hardware address > > But, please confirm if your switch support the above fields in the set-field > action. > > Thanks, > Iwase > > > > > > > Cheers, > > Talal > > > > > > ------------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > 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
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
