[ovs-discuss] How can i let the flow entries don't disppear after restart the ovs?

Srini Seetharaman srini.seetharaman at gmail.com
Wed Nov 12 00:48:39 UTC 2014

I have been helping a DevOps group roll out Open vSwitch for isolating pods
of Docker containers across hosts using VxLAN without using a separate
controller [1]. Although OVS works quite well for their situation, rule
persistence seems to be a problem. We rigged chef scripts to regenerate the
rules on reboots or periodically (so as to restore rules when OVS
segfaulted and restarted).

We believe a cleaner approach will be to preserve some rules within OVSDB
and replay them. That way, we don't need a separate rule maintenance
mechanism and we're not forced to use a controller solution that may be
unnecessarily heavyweight fr this DevOps envrionment.

Would the community be willing to accept a schema for persistent flows (Not
all flows need to be persistent) and a patch that allows archiving and
replaying those rules on startup? Or is there a better approach that folks
can suggest?


[1] LorisPack toolkit for multi-host Docker networking using OVS:

On Thu, Jan 31, 2013 at 10:29 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Fri, Feb 01, 2013 at 02:24:07PM +0800, Kris zhang wrote:
> > First i created a bridge br0, and then I added some flow entries into br0
> > (for example: ovs-ofctl add-flow br0 dl_vlan=10,action=normal). but i
> found
> > the flow entries disppearred after i restart the ovs. (i use the command
> > ovs-ofctl dump-flows br0). How can i let the flow entries persistence in
> > OVS-DB even if the computer reboot?
> The usual way would be to use an OpenFlow controller.  If this is the
> only feature you need then you can use ovs-controller with the
> --with-flows option.
> Also, OVSDB doesn't store flows.
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20141111/62682710/attachment-0002.html>

More information about the discuss mailing list