summaryrefslogtreecommitdiff
path: root/ovsdb/jsonrpc-server.h
diff options
context:
space:
mode:
authorLance Richardson <lrichard@redhat.com>2016-10-25 12:38:48 -0400
committerBen Pfaff <blp@ovn.org>2016-11-01 13:35:45 -0700
commit9c1a11820e9e660737ce6b1f412684611e095cc2 (patch)
treedb3910d6266d0cfcf01773198598b00bc69fd262 /ovsdb/jsonrpc-server.h
parent2fd72a63aac4aea6384bc6f89925eac4752521bc (diff)
downloadopenvswitch-9c1a11820e9e660737ce6b1f412684611e095cc2.tar.gz
ovsdb-server: Implement read-only remote connection type.
Adds a new "read_only" column for remote connections. Operations that would alter the state of the database are not permitted on connections for which the "read_only" column is set to "true". Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/jsonrpc-server.h')
-rw-r--r--ovsdb/jsonrpc-server.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ovsdb/jsonrpc-server.h b/ovsdb/jsonrpc-server.h
index f04b1e977..f72f88487 100644
--- a/ovsdb/jsonrpc-server.h
+++ b/ovsdb/jsonrpc-server.h
@@ -34,6 +34,7 @@ void ovsdb_jsonrpc_server_destroy(struct ovsdb_jsonrpc_server *);
struct ovsdb_jsonrpc_options {
int max_backoff; /* Maximum reconnection backoff, in msec. */
int probe_interval; /* Max idle time before probing, in msec. */
+ bool read_only; /* Only read-only transactions are allowed. */
int dscp; /* Dscp value for manager connections */
};
struct ovsdb_jsonrpc_options *