diff options
| author | Andrew Evans <aevans@nicira.com> | 2011-03-14 13:19:20 -0700 |
|---|---|---|
| committer | Andrew Evans <aevans@nicira.com> | 2011-03-14 13:19:26 -0700 |
| commit | 2cdcb8983d9e2f3d690ee5cb62593c05898fb26e (patch) | |
| tree | 84260b3ce0de2357172476cf3da06ea4d955227a /lib/rconn.h | |
| parent | 5eda645e36a9b5dd72c275b7e400dfefcba281d3 (diff) | |
| download | openvswitch-2cdcb8983d9e2f3d690ee5cb62593c05898fb26e.tar.gz | |
ofproto: Store time since last connect and disconnect in Controller table.
ovs-vswitchd writes only the duration of its connection to or disconnection
from each controller to the database. This changes that behavior to write the
time since both the last connection and disconnection events regardless of
connection state. This mirrors the new behavior for reporting database manager
connection status.
Requested-by: Peter Balland <peter@nicira.com>
Bug #4833.
Diffstat (limited to 'lib/rconn.h')
| -rw-r--r-- | lib/rconn.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rconn.h b/lib/rconn.h index 47b211b29..8579399da 100644 --- a/lib/rconn.h +++ b/lib/rconn.h @@ -81,6 +81,7 @@ const char *rconn_get_state(const struct rconn *); unsigned int rconn_get_attempted_connections(const struct rconn *); unsigned int rconn_get_successful_connections(const struct rconn *); time_t rconn_get_last_connection(const struct rconn *); +time_t rconn_get_last_disconnect(const struct rconn *); time_t rconn_get_last_received(const struct rconn *); time_t rconn_get_creation_time(const struct rconn *); unsigned long int rconn_get_total_time_connected(const struct rconn *); |
