The "ovs-ofctl dump-flows" command is going to dump out more data than 
"ovs-ofctl add-flows" needs. The error you're seeing is complaining about the 
first line of dump-flows output, which is "NXST_FLOW reply".  Try removing that.

I just noticed that 1.6 and later releases don't properly read in regular flows 
either, since "ovs-ofctl add-flows" doesn't know to ignore the "idle_age" 
field.  I just sent out a fix for review:

        http://openvswitch.org/pipermail/dev/2013-February/025036.html

If you're using an affected release, until that gets checked in and a new 
release is out, you'll need to do some additional preprocessing on your flows.

--Justin


On Jan 31, 2013, at 11:56 PM, yue wang <heuye.w...@gmail.com> wrote:

> Hi guys,
> 
> I use the command: 
> ovs-ofctl dump-flows br0 > /root/flow_backup
> 
> To save all flow entries into a file, but when i run:
> ovs-ofctl add-flows br0 /root/flow_backup
> 
> It says: ovs-ofctl: must specify an action.
> I think the add flow syntax is not correct, so ho can i to dump flows to a 
> file, and restore them into ovs?
> 
> 
> Thanks,
> Heuye
> 
> 
> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to