Re: [ovs-dev] ovs-dpctl add-flow

2014-03-21 Thread Ben Pfaff
On Fri, Mar 21, 2014 at 12:22:52PM -0600, Junguk Cho wrote: > I have one question, when flow is inserted in datapath, it will be removed > after idle time. Who remove this flows? ovs-vswitchd ___ dev mailing list dev@openvswitch.org http://openvswitch.or

Re: [ovs-dev] ovs-dpctl add-flow

2014-03-21 Thread Junguk Cho
Thank you for reply. I looked at source code. Eth information is necessary to insert flow in datapath. However, it did not insert flow because function delete_unexpected_flow() will call "dpif_flow_del" to delete inserted flow after ovs-dpctl command. I guess if ofproto does not have this flow, it

Re: [ovs-dev] ovs-dpctl add-flow

2014-03-21 Thread Ben Pfaff
On Fri, Mar 21, 2014 at 03:53:59AM -0600, Junguk Cho wrote: > Hello, can I insert flow datapath with "ovs-dpctl add-flow" In theory, yes, but it's a bad idea. As the manpage says: The following commands are primarily useful for debugging Open vSwitch. The flow table entries (both

Re: [ovs-dev] ovs-dpctl add-flow

2014-03-21 Thread Nithin Raju
Hi, You may have a syntax error in the flow you specified. You can dump existing flows and try inserting/modifying them with some changes: An example of a flow that worked is as follows: ovs-dpctl add-flow "openvswitch" "in_port(1),eth(src=00:11:22:33:11:02,dst=00:11:22:33:11:01),eth_type(0x0800