[ovs-dev] Ask for help to remove a flow

Justin Pettit jpettit at nicira.com
Wed May 9 16:41:30 UTC 2012


On May 9, 2012, at 9:23 AM, Ben Pfaff wrote:

> On Wed, May 09, 2012 at 01:37:38PM +0800, gong ys wrote:
>> [root at robinlinux ~]# ovs-ofctl dump-flows br-tun
>> NXST_FLOW reply (xid=0x4):
>>  cookie=0x0, duration=2267.877s, table=0, n_packets=0, n_bytes=0, priority=3,tun_id=0x2 actions=mod_vlan_vid:1,output:1
>>  cookie=0x0, duration=2267.901s, table=0, n_packets=75, n_bytes=24062, priority=4,in_port=1,dl_vlan=1 actions=set_tunnel:0x2,NORMAL
>>  cookie=0x0, duration=2270.179s, table=0, n_packets=447, n_bytes=146822, priority=1 actions=drop
>> [root at robinlinux ~]# ovs-ofctl del-flows br-tun priority=1
>> ovs-ofctl: unknown keyword priority
> 
> OpenFlow does not support deleting all the flows with a particular
> priority.  That is why ovs-ofctl does not let you try to do it.

Ben is of course correct.  "--strict" works on the example you gave, but that's just because the flow with priority 1 has an empty match.  Sorry about the confusion.

--Justin





More information about the dev mailing list