ovs-controller: Make --with-flows read the file only once, at startup.
authorBen Pfaff <blp@nicira.com>
Thu, 23 Sep 2010 21:08:13 +0000 (14:08 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Oct 2010 20:09:05 +0000 (13:09 -0700)
commit09913dfd259ae81dee6c944db1b92e9722f17667
tree50730cca17cfd480dc28c106e924a32c630fe2b2
parent0e581146fe81fce12c9e72cb70e06eba940720b5
ovs-controller: Make --with-flows read the file only once, at startup.

A couple of people have reported that ovs-controller --with-flows is
confusing.  This seems to be because it doesn't read the file with the
flows until the first connection from a switch.  Then, if the file has a
syntax error, it exits.

This commit changes the behavior so that it reads the file immediately at
startup instead.
lib/learning-switch.c
lib/learning-switch.h
lib/queue.h
utilities/ovs-controller.8.in
utilities/ovs-controller.c