From a11f6164a801c093ef67b144167e55fc9e851626 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 13 Jul 2011 16:08:37 -0700 Subject: ovsdb: Report the number of connections for inbound Managers. Inbound managers (e.g. "ptcp:") can have multiple active connections, but the database schema doesn't allow us to report the status of more than one at a time. This commit adds a status key-value pair that, when there is more than one active connection, reports the number that are active. This at least helps to clarify the issue. --- 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 1d612cdf..16504483 100644 --- a/ovsdb/jsonrpc-server.h +++ b/ovsdb/jsonrpc-server.h @@ -41,6 +41,7 @@ struct ovsdb_jsonrpc_remote_status { unsigned int sec_since_connect; unsigned int sec_since_disconnect; bool is_connected; + int n_connections; }; bool ovsdb_jsonrpc_server_get_remote_status( const struct ovsdb_jsonrpc_server *, const char *target, -- cgit v1.2.3