On Sun, Aug 24, 2014 at 07:24:31PM -0400, Tim Epkes wrote: > I was following a website > http://dtucker.co.uk/hack/building-a-router-with-openvswitch.html on how to > make OpenVswitch reply to ARPs for Gateway addresses. When I put the in > the following: > > # ovs-ofctl add-flow -OOpenFlow13 bridge50 > "table=105,dl_type=0x0806,nw_dst=10.1.1.1,actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],mod_dl_src:00:00:5E:00:02:01,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0x00005e000201->NXM_NX_ARP_SHA[],load:0x0a010101->NXM_OF_ARP_SPA[],in_port" > > I received the following: > > OFPT_ERROR (OF1.3) (xid=0x2): OFPBAC_BAD_ARGUMENT > OFPT_FLOW_MOD (OF1.3) (xid=0x2): > (***truncated to 64 bytes from 256***) > 00000000 04 0e 01 00 00 00 00 02-00 00 00 00 00 00 00 00 |................| > 00000010 00 00 00 00 00 00 00 00-69 00 00 00 00 00 80 00 |........i.......| > 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 00 00 00 |................| > 00000030 00 01 00 12 80 00 0a 02-08 06 80 00 2e 04 0a 01 |................| > > Any Idea what is wrong here. It looks correct. I am running ovs 1.10.2
Probably too old. Only Open vSwitch 2.3 and later properly support OpenFlow 1.3. Q: What versions of OpenFlow does Open vSwitch support? A: The following table lists the versions of OpenFlow supported by each version of Open vSwitch: Open vSwitch OF1.0 OF1.1 OF1.2 OF1.3 OF1.4 OF1.5 =============== ===== ===== ===== ===== ===== ===== 1.9 and earlier yes --- --- --- --- --- 1.10 yes --- [*] [*] --- --- 1.11 yes --- [*] [*] --- --- 2.0 yes [*] [*] [*] --- --- 2.1 yes [*] [*] [*] --- --- 2.2 yes [*] [*] [*] [%] [*] 2.3 yes yes yes yes [*] [*] [*] Supported, with one or more missing features. [%] Experimental, unsafe implementation. Open vSwitch 2.3 enables OpenFlow 1.0, 1.1, 1.2, and 1.3 by default in ovs-vswitchd. In Open vSwitch 1.10 through 2.2, OpenFlow 1.1, 1.2, and 1.3 must be enabled manually in ovs-vswitchd. OpenFlow 1.4 and 1.5 are also supported, with missing features, in Open vSwitch 2.3 and later, but not enabled by default. In any case, the user may override the default: - To enable OpenFlow 1.0, 1.1, 1.2, and 1.3 on bridge br0: ovs-vsctl set bridge br0 protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13 - To enable OpenFlow 1.0, 1.1, 1.2, 1.3, 1.4, and 1.5 on bridge br0: ovs-vsctl set bridge br0 protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13,OpenFlow14,OpenFlow15 - To enable only OpenFlow 1.0 on bridge br0: ovs-vsctl set bridge br0 protocols=OpenFlow10 All current versions of ovs-ofctl enable only OpenFlow 1.0 by default. Use the -O option to enable support for later versions of OpenFlow in ovs-ofctl. For example: ovs-ofctl -O OpenFlow13 dump-flows br0 (Open vSwitch 2.2 had an experimental implementation of OpenFlow 1.4 that could cause crashes. We don't recommend enabling it.) OPENFLOW-1.1+ in the Open vSwitch source tree tracks support for OpenFlow 1.1 and later features. When support for OpenFlow 1.4 and 1.5 is solidly implemented, Open vSwitch will enable those version by default. Also, the OpenFlow 1.5 specification is still under development and thus subject to change. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss