From e47cb14c2a1adfff347a311389767fc5f0529353 Mon Sep 17 00:00:00 2001 From: Andy Zhou Date: Tue, 20 Oct 2015 12:50:23 -0700 Subject: 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 Acked-by: Ben Pfaff --- ovsdb/jsonrpc-server.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ovsdb/jsonrpc-server.h') 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 */ -- cgit v1.2.1