diff options
author | Gurucharan Shetty <gshetty@nicira.com> | 2013-05-28 12:52:36 +0000 |
---|---|---|
committer | Gurucharan Shetty <gshetty@nicira.com> | 2013-05-30 17:25:17 -0700 |
commit | 40358701d5d7c8994b36260ed539a4d9c6d20cfe (patch) | |
tree | e6895e41125cc1a3bd0eae87b7533fb0bd158eb8 /ofproto/ofproto.h | |
parent | 787f3d590be50599387d2ce24d4d26953c1185b0 (diff) |
ovs-vswitchd: An option to wait for userspace flow restore to complete.
While upgrading openvswitch, it helps to restore openflow flows before
starting packet processing. Typically we want to restart openvswitch,
add the openflow flows and then start packet processing.
To do this, we look for the other_config:flow-restore-wait column
in the Open_vSwitch table during startup. If set as true, we disable
receiving packets from the datapath, expiring or flushing flows and
running any periodic ofproto activities. This option does not prevent
the addition and deletion of ports. Once this option is set to false,
we return to normal processing.
An upcoming commit will use this feature in Open vSwitch startup scripts.
Bug #16086.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Diffstat (limited to 'ofproto/ofproto.h')
-rw-r--r-- | ofproto/ofproto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ofproto/ofproto.h b/ofproto/ofproto.h index acb1790c..18241e76 100644 --- a/ofproto/ofproto.h +++ b/ofproto/ofproto.h @@ -249,6 +249,8 @@ int ofproto_set_ipfix(struct ofproto *, const struct ofproto_ipfix_bridge_exporter_options *, const struct ofproto_ipfix_flow_exporter_options *, size_t); +void ofproto_set_flow_restore_wait(bool flow_restore_wait_db); +bool ofproto_get_flow_restore_wait(void); int ofproto_set_stp(struct ofproto *, const struct ofproto_stp_settings *); int ofproto_get_stp_status(struct ofproto *, struct ofproto_stp_status *); |