summaryrefslogtreecommitdiff
path: root/ovn/controller/chassis.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-07-24 13:14:59 -0700
committerBen Pfaff <blp@ovn.org>2016-07-26 23:59:53 -0700
commitfa183acc654f7e5da17cd70fc91d6b5b02782183 (patch)
tree9dc2236c8f5cd5e66e74914a56b091befa069d0f /ovn/controller/chassis.h
parent763f638b7f34953ccae8b494c63d0dab7f326b41 (diff)
downloadopenvswitch-fa183acc654f7e5da17cd70fc91d6b5b02782183.tar.gz
ovn: Make it possible for CMS to detect when the OVN system is up-to-date.
Until now, there has been no reliable for the CMS (or ovn-nbctl, or anything else) to detect when changes made to the northbound configuration have been passed through to the southbound database or to the hypervisors. This commit adds this feature to the system, by adding sequence numbers to the northbound and southbound databases and adding code in ovn-nbctl, ovn-northd, and ovn-controller to keep those sequence numbers up-to-date. The biggest user-visible change from this commit is new a new option --wait to ovn-nbctl. With --wait=sb, ovn-nbctl now waits for ovn-northd to update the southbound database; with --wait=hv, it waits for the changes to make their way to Open vSwitch on every hypervisor. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'ovn/controller/chassis.h')
-rw-r--r--ovn/controller/chassis.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ovn/controller/chassis.h b/ovn/controller/chassis.h
index 26017d06c..a14da1cf3 100644
--- a/ovn/controller/chassis.h
+++ b/ovn/controller/chassis.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015 Nicira, Inc.
+/* Copyright (c) 2015, 2016 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,8 @@ struct ovsdb_idl;
struct ovsrec_bridge;
void chassis_register_ovs_idl(struct ovsdb_idl *);
-void chassis_run(struct controller_ctx *, const char *chassis_id);
+const struct sbrec_chassis *chassis_run(struct controller_ctx *,
+ const char *chassis_id);
bool chassis_cleanup(struct controller_ctx *, const char *chassis_id);
#endif /* ovn/chassis.h */