You don't need to write "actions:". I believe there is also some requirement to include an ethernet or ethertype match.
Note that if you're running ovs-vswitchd, you'll probably end up arguing with it about kernel flow management--ie, it will delete your flows. This is the sort of detail that should be handled by ovs-vswitchd, which is configured through ovs-ofctl. On 27 January 2015 at 04:20, Yang Yannan <[email protected]> wrote: > > uh......I just wanna know how ovs-dpctl add-flow work right. cause it always > shows invalid arguement > ---原始邮件--- > 发件人: "Ben Pfaff"<[email protected]> > 发送时间: 2015年01月25日 01:03:27 > 收件人: "Yang Yannan"<[email protected]>; > 抄送: "discuss"<[email protected]>; > 主题: Re: [ovs-discuss] how to add flow using ovs-dpctl? > > On Sat, Jan 24, 2015 at 05:23:07PM +0800, Yang Yannan wrote: >> I try this line and it is wrong. could anyone give a right one? >> ovs-dpctl add-flow in_port(3), actions:2. > > It's usually a bad idea to use ovs-dpctl to add-flows. Use ovs-ofctl > instead. > > _______________________________________________ > discuss mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/discuss > _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
