summaryrefslogtreecommitdiff
path: root/ovsdb/ovsdb-client.c
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2021-05-27 15:29:06 +0200
committerIlya Maximets <i.maximets@ovn.org>2021-06-07 21:03:16 +0200
commit4275b5b7fbb9437b265470670fa4aafb9acd8e23 (patch)
tree944753d5c8668dfdd6f33cf0072816e5975668a4 /ovsdb/ovsdb-client.c
parent0be15ad76f0f126d18257a8fe1d3753e76e57358 (diff)
downloadopenvswitch-4275b5b7fbb9437b265470670fa4aafb9acd8e23.tar.gz
ovsdb-client: Integrate record/replay functionality.
This is primarily to be able to test recording of client connections. Unit test added accordingly. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Dumitru Ceara <dceara@redhat.com>
Diffstat (limited to 'ovsdb/ovsdb-client.c')
-rw-r--r--ovsdb/ovsdb-client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-client.c b/ovsdb/ovsdb-client.c
index ba28e36d7..ffa8f8df2 100644
--- a/ovsdb/ovsdb-client.c
+++ b/ovsdb/ovsdb-client.c
@@ -38,6 +38,7 @@
#include "jsonrpc.h"
#include "lib/table.h"
#include "log.h"
+#include "ovs-replay.h"
#include "ovsdb.h"
#include "ovsdb-data.h"
#include "ovsdb-error.h"
@@ -307,6 +308,7 @@ parse_options(int argc, char *argv[])
DAEMON_OPTION_ENUMS,
TABLE_OPTION_ENUMS,
SSL_OPTION_ENUMS,
+ OVS_REPLAY_OPTION_ENUMS,
};
static const struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
@@ -325,6 +327,7 @@ parse_options(int argc, char *argv[])
STREAM_SSL_LONG_OPTIONS,
#endif
TABLE_LONG_OPTIONS,
+ OVS_REPLAY_LONG_OPTIONS,
{NULL, 0, NULL, 0},
};
char *short_options = ovs_cmdl_long_options_to_short_options(long_options);
@@ -352,6 +355,7 @@ parse_options(int argc, char *argv[])
DAEMON_OPTION_HANDLERS
TABLE_OPTION_HANDLERS(&table_style)
STREAM_SSL_OPTION_HANDLERS
+ OVS_REPLAY_OPTION_HANDLERS
case OPT_BOOTSTRAP_CA_CERT:
stream_ssl_set_ca_cert_file(optarg, true);
@@ -467,6 +471,7 @@ usage(void)
printf(" --timestamp timestamp \"monitor\" output");
daemon_usage();
vlog_usage();
+ ovs_replay_usage();
printf("\nOther options:\n"
" -h, --help display this help message\n"
" -V, --version display version information\n");