diff options
author | Andy Zhou <azhou@nicira.com> | 2015-10-20 12:50:23 -0700 |
---|---|---|
committer | Andy Zhou <azhou@ovn.org> | 2015-12-11 14:22:33 -0800 |
commit | e47cb14c2a1adfff347a311389767fc5f0529353 (patch) | |
tree | aa91ec250d8d951076e32fe86725593153066fa7 /ovsdb/jsonrpc-server.h | |
parent | db2b5757328c36ff452c5c6af360cbc7fb05f0c8 (diff) | |
download | openvswitch-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.h | 1 |
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 */ |