diff options
author | Ben Pfaff <blp@nicira.com> | 2011-07-13 16:08:37 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-07-26 16:50:09 -0700 |
commit | a11f6164a801c093ef67b144167e55fc9e851626 (patch) | |
tree | 5db7185c850e96094ae17f337490f51eef6af705 /ovsdb/jsonrpc-server.h | |
parent | 87fcbc60f28cde16939b3a9e139bdc67ca831010 (diff) |
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.
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 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, |