* Protocol documentation moved from ovsdb-server(1) to ovsdb-server(7).
* ovsdb-client: New "get-schema-cksum" and "query" commands.
* ovsdb-client: New "backup" and "restore" commands.
+ * ovsdb-client: New --timeout option.
* ovsdb-tool: New "db-name" and "schema-name" commands.
- ovs-vsctl and other commands that display data in tables now support a
--max-column-width option to limit column width.
just above the table. The JSON output format puts the timestamp in a
member of the top-level JSON object named \fBtime\fR.
.
+.IP "\fB\-t\fR"
+.IQ "\fB\-\-timeout=\fIsecs\fR"
+Limits \fBovsdb\-client\fR runtime to approximately \fIsecs\fR
+seconds. If the timeout expires, \fBovsdb\-client\fR will exit with a
+\fBSIGALRM\fR signal.
+.
.SS "Daemon Options"
The daemon options apply only to the \fBmonitor\fR and \fBmonitor\-cond\fR commands.
With any other command, they have no effect.
{"version", no_argument, NULL, 'V'},
{"timestamp", no_argument, NULL, OPT_TIMESTAMP},
{"force", no_argument, NULL, OPT_FORCE},
+ {"timeout", required_argument, NULL, 't'},
VLOG_LONG_OPTIONS,
DAEMON_LONG_OPTIONS,
#ifdef HAVE_OPENSSL
table_style.format = TF_TABLE;
for (;;) {
+ unsigned long int timeout;
int c;
c = getopt_long(argc, argv, short_options, long_options, NULL);
force = true;
break;
+ case 't':
+ timeout = strtoul(optarg, NULL, 10);
+ if (timeout <= 0) {
+ ovs_fatal(0, "value %s on -t or --timeout is not at least 1",
+ optarg);
+ } else {
+ time_alarm(timeout);
+ }
+ break;
+
case '?':
exit(EXIT_FAILURE);
alias ovn-sbctl='OVS_SBCTL_TIMEOUT'
alias ovn-nbctl='OVN_NBCTL_TIMEOUT'
alias vtep-ctl='VTEP_CTL_TIMEOUT'
+ alias ovsdb-client='OVSDB_CLIENT_TIMEOUT'
OVS_OFCTL_TIMEOUT () {
command ovs-ofctl --timeout=$OVS_TIMEOUT "$@"
}
VTEP_CTL_TIMEOUT () {
command vtep-ctl --timeout=$OVS_TIMEOUT "$@"
}
+ OVSDB_CLIENT_TIMEOUT () {
+ command ovsdb-client --timeout=$OVS_TIMEOUT "$@"
+ }
fi
# parent_pid PID