[ovs-discuss] Changing flow table size?

NGUYEN Xuan Nam xuan-nam.nguyen at inria.fr
Mon Mar 18 15:55:20 UTC 2013


*Hello,

I inserted a row into flow_table using this command*
sudo ovs-vsctl add bridge s1 flow_tables 0=@nam1 -- --id=@nam1 create 
flow_table flow_limit=1000

root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid               : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit          : 1000
groups              : []
name                : []
overflow_policy     : []
*I can update my flow_table using the _uuid as row_id*

root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl set flow_table 
850342e5-8d93-4114-beeb-d42fdd0c5c88 flow_limit=10000
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list 
flow_table_uuid               : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit          : 10000
groups              : []
name                : []
overflow_policy     : []

*However I cannot destroy this record or clear flow_table*

root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl destroy flow_table 
850342e5-8d93-4114-beeb-d42fdd0c5c88
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl list flow_table
_uuid               : 850342e5-8d93-4114-beeb-d42fdd0c5c88
flow_limit          : 10000
groups              : []
name                : []
overflow_policy     : []
root at namnx-HP-Z400-Workstation:/home/namnx# ovs-vsctl --all destroy 
flow_table
ovs-vsctl: unrecognized option '--all'

*Did I forget something?*

Thanks.
Nam













On 03/14/2013 04:32 PM, Jesse Gross wrote:
> On Thu, Mar 14, 2013 at 7:13 AM, NGUYEN Xuan Nam
> <xuan-nam.nguyen at inria.fr> wrote:
>> Hello,
>>
>> I found the way to configure the flow limit, however, the flow limit seems
>> not work. I am still able to insert more than the limitation. Did I forget
>> something ?
>>
>> Nam
>>
>> sudo ovs-vsctl add bridge s1 flow_tables 1=@nam1 -- --id=@nam1 create
>> flow_table flow_limit=1
>>
>>
>> namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
>> ovs-vsctl list bridge
>> _uuid               : 2ca85b58-a002-4239-8fc0-f2bb9963789d
>> controller          : [048c4dce-6e05-4337-8d7e-5a12072d6c76]
>>
>> datapath_id         : "0000000000000001"
>> datapath_type       : ""
>> external_ids        : {}
>> fail_mode           : secure
>> flood_vlans         : []
>> flow_tables         : {1=a2359008-da54-43ea-80fe-10580c4b7d09}
>>
>> mirrors             : []
>> name                : "s1"
>> netflow             : []
>> other_config        : {datapath-id="0000000000000001"}
>> ports               : [20124670-1666-4268-820f-d993441d1300,
>> 63a4f5d2-80f9-49f2-881a-d94d7d49c2c7, 82f6b83d-4932-4816-a5b3-5762b3fd7633,
>> a1bf57bb-2b2e-430a-90f3-97911b496428]
>>
>> sflow               : []
>> status              : {}
>> stp_enable          : false
>>
>> _uuid               : 244fd892-57c0-4bf0-a94b-6f1f51683591
>> controller          : [12c6369d-f810-436f-9306-0edcb154774c]
>> datapath_id         : "000092d84f24f04b"
>> datapath_type       : ""
>> external_ids        : {}
>> fail_mode           : []
>> flood_vlans         : []
>> flow_tables         : {}
>> mirrors             : []
>> name                : br-int
>> netflow             : []
>> other_config        : {}
>> ports               : [04add379-539d-40b7-9aa3-9474699ef112,
>> 51267413-0cbc-42dc-8dce-99faf7d6fa23, e335a241-a1a3-4606-9816-c7fc499d587e]
>> sflow               : []
>> status              : {}
>> stp_enable          : false
>> namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
>> ovs-vsctl list flow_table
>> _uuid               : a2359008-da54-43ea-80fe-10580c4b7d09
>> flow_limit          : 1
>> groups              : []
>> name                : []
>> overflow_policy     : []
>>
>>
>> namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
>> ovs-ofctl add-flow system at s1
>> priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=1,actions=output:2
>> namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
>> ovs-ofctl add-flow system at s1
>> priority=65535,idle_timeout=50000,dl_type=0x0800,nw_proto=17,in_port=3,actions=output:2
>>
>> namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$ sudo
>> ovs-ofctl dump-flows s1
>> NXST_FLOW reply (xid=0x4):
>>   cookie=0x0, duration=17.935s, table=0, n_packets=0, n_bytes=0,
>> idle_timeout=50000, idle_age=17, priority=65535,udp,in_port=1
>> actions=output:2
>>   cookie=0x0, duration=12.927s, table=0, n_packets=0, n_bytes=0,
>> idle_timeout=50000, idle_age=12, priority=65535,udp,in_port=3
>> actions=output:2
>> namnx at namnx-HP-Z400-Workstation:~/Downloads/openvswitch-1.9.0$
> You put a limit on table 1 and then inserted in table 0.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130318/22d47fb5/attachment.html>


More information about the discuss mailing list