2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

ovn-controller: Add external-id 'ovn-remote-probe-interval'

Add a external-id 'ovn-remote-probe-interval' for setting the activity probe
interval of the json session from ovn-controller to the OVN southbound database.

Signed-off-by: Huang Lei <lhuang8@ebay.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Huang Lei
2016-03-25 02:18:34 +08:00
committed by Ben Pfaff
parent 3e6dc8b7a8
commit a4927e36ff
4 changed files with 56 additions and 0 deletions

View File

@@ -582,6 +582,15 @@ ovsdb_idl_get_last_error(const struct ovsdb_idl *idl)
return 0;
}
}
/* Sets the "probe interval" for 'idl->session' to 'probe_interval', in
* milliseconds.
*/
void
ovsdb_idl_set_probe_interval(const struct ovsdb_idl *idl, int probe_interval)
{
jsonrpc_session_set_probe_interval(idl->session, probe_interval);
}
static unsigned char *
ovsdb_idl_get_mode(struct ovsdb_idl *idl,