ovsdb: test ovs-vswitchd for backward compatibility
authorAndy Zhou <azhou@nicira.com>
Tue, 20 Oct 2015 19:50:23 +0000 (12:50 -0700)
committerAndy Zhou <azhou@ovn.org>
Fri, 11 Dec 2015 22:22:33 +0000 (14:22 -0800)
commite47cb14c2a1adfff347a311389767fc5f0529353
treeaa91ec250d8d951076e32fe86725593153066fa7
parentdb2b5757328c36ff452c5c6af360cbc7fb05f0c8
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>
ovsdb/jsonrpc-server.c
ovsdb/jsonrpc-server.h
ovsdb/ovsdb-server.c
tests/ovs-vswitchd.at