Hi Dheeraj,

The vlan id that shows up un dump-flows is, as you mentioned, always 
4096+given_vlan_id, but if you look at the actual header of packets you will 
see that the vlan id is correct. 
It’s the way ovs works, i don’t remember for sure the reason for it tho (i 
think it uses them internally).

Regards,
Pedro


> On 14 Oct 2015, at 11:30, Dheeraj Bansal <[email protected]> wrote:
> 
> Hi All,
> 
> Can anyone explain the following behavior to me:
> 
> When I add a flow entry to modify VLAN ID of the packet to x
> it gets successfully added, but when I dump the flows for OpenFlow13 the 
> value of VLAN ID is always shown as "4096+x"
> 
> ovs-ofctl -O openflow13 add-flow br0 "actions=mod_vlan_vid:<100>"
> ovs-ofctl -O openflow13 dump-flows br0
> =>
> cookie=0x0, duration=3995.186s, table=0, n_packets=0, n_bytes=0, 
> actions=push_vlan:0x8100,set_field:4196->vlan_vid
> 
> 
> I am using ovs-vsctl (Open vSwitch) 2.3.2
> 
> Regards
> Dheeraj Bansal
> _______________________________________________
> 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