On Fri, 31 May 2013 00:35:21 -0500 Gandhimathi Velusamy <mathiy...@gmail.com> wrote:
> I want to add the action to set the fields eth_type and ipv4_src in the > flow mod message to handle icmpv4 messages. could you please, provide me > the syntax for it. You can do like the followings: f0 = dp.ofproto_parser.OFPMatchField.make( ofproto_v1_2.OXM_OF_ETH_TYPE, 0x800) f1 = dp.ofproto_parser.OFPMatchField.make( ofproto_v1_2.OXM_OF_IPV4_SRC, int(netaddr.IPNetwork('192.168.8.1').ip)) actions = [dp.ofproto_parser.OFPActionSetField(f0), dp.ofproto_parser.OFPActionSetField(f1), dp.ofproto_parser.OFPActionOutput(1, 1600)] IIRC, with OVS: - you can't set eth_type - you need a match for IP if you set ipv4_src. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel