mirror of
https://github.com/openvswitch/ovs
synced 2025-08-22 09:58:01 +00:00
ovsdb-cs: Add function to set all jsonrpc session options.
Allow setting all the options for the source connection, not only the inactivity probe interval. Acked-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
This commit is contained in:
parent
6de317c0e0
commit
dd0947b871
@ -791,6 +791,16 @@ ovsdb_cs_get_last_error(const struct ovsdb_cs *cs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sets all the JSON-RPC session 'options' for 'cs''s current session. */
|
||||||
|
void
|
||||||
|
ovsdb_cs_set_jsonrpc_options(const struct ovsdb_cs *cs,
|
||||||
|
const struct jsonrpc_session_options *options)
|
||||||
|
{
|
||||||
|
if (cs->session) {
|
||||||
|
jsonrpc_session_set_options(cs->session, options);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Sets the "probe interval" for 'cs''s current session to 'probe_interval', in
|
/* Sets the "probe interval" for 'cs''s current session to 'probe_interval', in
|
||||||
* milliseconds. */
|
* milliseconds. */
|
||||||
void
|
void
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
#include "openvswitch/uuid.h"
|
#include "openvswitch/uuid.h"
|
||||||
|
|
||||||
struct json;
|
struct json;
|
||||||
|
struct jsonrpc_session_options;
|
||||||
struct ovsdb_cs;
|
struct ovsdb_cs;
|
||||||
|
|
||||||
struct ovsdb_cs_ops {
|
struct ovsdb_cs_ops {
|
||||||
@ -131,6 +132,8 @@ bool ovsdb_cs_is_alive(const struct ovsdb_cs *);
|
|||||||
bool ovsdb_cs_is_connected(const struct ovsdb_cs *);
|
bool ovsdb_cs_is_connected(const struct ovsdb_cs *);
|
||||||
int ovsdb_cs_get_last_error(const struct ovsdb_cs *);
|
int ovsdb_cs_get_last_error(const struct ovsdb_cs *);
|
||||||
|
|
||||||
|
void ovsdb_cs_set_jsonrpc_options(const struct ovsdb_cs *,
|
||||||
|
const struct jsonrpc_session_options *);
|
||||||
void ovsdb_cs_set_probe_interval(const struct ovsdb_cs *, int probe_interval);
|
void ovsdb_cs_set_probe_interval(const struct ovsdb_cs *, int probe_interval);
|
||||||
|
|
||||||
/* Conditional monitoring (specifying that only rows matching particular
|
/* Conditional monitoring (specifying that only rows matching particular
|
||||||
|
Loading…
x
Reference in New Issue
Block a user