summaryrefslogtreecommitdiff
path: root/ovsdb/jsonrpc-server.h
diff options
context:
space:
mode:
authorAndy Zhou <azhou@nicira.com>2015-10-20 12:50:23 -0700
committerAndy Zhou <azhou@ovn.org>2015-12-11 14:22:33 -0800
commite47cb14c2a1adfff347a311389767fc5f0529353 (patch)
treeaa91ec250d8d951076e32fe86725593153066fa7 /ovsdb/jsonrpc-server.h
parentdb2b5757328c36ff452c5c6af360cbc7fb05f0c8 (diff)
downloadopenvswitch-e47cb14c2a1adfff347a311389767fc5f0529353.tar.gz
ovsdb: test ovs-vswitchd for backward compatibility
Add test to make sure ovs-vswitchd fall back to use the "monitor" method when connecting to an older ovsdb-server that does not support "monitor2". For testing backward compatibility, add an ovs-appctl command: "ovsdb-server/disable-monitor2". This command will restart all currently open jsonrpc connections, but without support for 'monitor2' JSON-RPC method for the new connections. There is no corresponding enable command, since this feature is only useful for testing. 'monitor2' will be available when ovsdb-server restarts. Signed-off-by: Andy Zhou <azhou@nicira.com> Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/jsonrpc-server.h')
-rw-r--r--ovsdb/jsonrpc-server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/jsonrpc-server.h b/ovsdb/jsonrpc-server.h
index fce8b7bd0..7a0bd31b1 100644
--- a/ovsdb/jsonrpc-server.h
+++ b/ovsdb/jsonrpc-server.h
@@ -71,5 +71,6 @@ void ovsdb_jsonrpc_server_get_memory_usage(const struct ovsdb_jsonrpc_server *,
struct ovsdb_jsonrpc_monitor;
void ovsdb_jsonrpc_monitor_destroy(struct ovsdb_jsonrpc_monitor *);
+void ovsdb_jsonrpc_disable_monitor2(void);
#endif /* ovsdb/jsonrpc-server.h */