The command that Rod specified works fine on my local setup (ovs v2.3.0) as
well. So, what's wrong with the command:
sudo ovs-ofctl -O OpenFlow13 add-flow br0 "cookie=0x0, table=1,
send_flow_rem priority=30,vlan_tci=0x0ffe/0x1fff,arp,metadata=
0xffffffff00000000,arp_tpa=10.0.0.1 actions=strip_vlan,write_
metadata:0xcafecafe00000000,goto_table:2"

-/\/

On Wed, Sep 17, 2014 at 12:18 PM, Rod N. Melton <[email protected]> wrote:

>
>
> i'm building my network with mininet but when i add this flow it works
> correctly. i use OVS 2.1.0.
>
>     sudo ovs-ofctl -O OpenFlow13 add-flow s5
> in_port=1,cookie=5,idle_timeout=90,icmp,dl_vlan=0x0040,actions=strip_vlan,output:2
>
> ovs-vsctl --version
> ovs-vsctl (Open vSwitch) 2.1.0
> Compiled May 26 2014 15:38:17
>
>  ovs-ofctl --version
> ovs-ofctl (Open vSwitch) 2.1.0
> Compiled May 26 2014 15:38:15
> OpenFlow versions 0x1:0x4
>
> did something happen in v2.3.0 to affect vlan?
>
>
>
> Rod
>
>
>
> On 2014-09-17 13:49, Nikhil Handigol wrote:
>
> I've setup an OVS bridge br0 with the following commands:
> $ sudo ovs-vsctl add-br br0
> $ sudo ovs-vsctl set bridge br0
> protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13
> $ sudo ovs-vsctl set bridge br0 datapath_type=netdev
>
>
> I tried to insert the following flow with a strip_vlan action:
> $ sudo ovs-ofctl -O OpenFlow13 add-flow br0 "cookie=0x0, table=1,
> send_flow_rem
> priority=30,vlan_tci=0x0ffe/0x1fff,arp,metadata=0xffffffff00000000,arp_tpa=10.0.0.1
> actions=strip_vlan,write_metadata:0xcafecafe00000000,goto_table:2"
>
> I get the following error:
> ovs-ofctl: none of the usable flow formats (none) is among the allowed
> flow formats (OXM-OpenFlow13)
>
> However when I remove "strip_vlan" from the actions, the flow gets added
> correctly. What am I doing wrong?
>
> Here are the relevant versions:
> OVS version: 2.3.0 obtained from
> http://openvswitch.org/releases/openvswitch-2.3.0.tar.gz
>
> $ ovs-vsctl --version
> ovs-vsctl (Open vSwitch) 2.3.0
> Compiled Sep 16 2014 16:52:35
> DB Schema 7.6.0
>
> $ ovs-ofctl --version
> ovs-ofctl (Open vSwitch) 2.3.0
> Compiled Sep 16 2014 16:52:33
> OpenFlow versions 0x1:0x4
>
> Thanks,
> Nikhil
>
>
> _______________________________________________
> discuss mailing 
> [email protected]http://openvswitch.org/mailman/listinfo/discuss
>
>
>
>
> _______________________________________________
> discuss mailing list
> [email protected]
> http://openvswitch.org/mailman/listinfo/discuss
>
>
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to