diff options
author | Ben Pfaff <blp@nicira.com> | 2010-09-23 14:08:13 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-10-01 13:09:05 -0700 |
commit | 09913dfd259ae81dee6c944db1b92e9722f17667 (patch) | |
tree | 50730cca17cfd480dc28c106e924a32c630fe2b2 /lib/learning-switch.h | |
parent | 0e581146fe81fce12c9e72cb70e06eba940720b5 (diff) |
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.
Diffstat (limited to 'lib/learning-switch.h')
-rw-r--r-- | lib/learning-switch.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/learning-switch.h b/lib/learning-switch.h index 96707b84..edb31549 100644 --- a/lib/learning-switch.h +++ b/lib/learning-switch.h @@ -26,7 +26,8 @@ struct rconn; struct lswitch *lswitch_create(struct rconn *, bool learn_macs, bool exact_flows, int max_idle, - bool action_normal, FILE *default_flows); + bool action_normal, + const struct ofpbuf *default_flows); void lswitch_set_queue(struct lswitch *sw, uint32_t queue); void lswitch_run(struct lswitch *); void lswitch_wait(struct lswitch *); |