2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

db-ctl-base: Warn if "destroy" command lacks --all or record argument.

Signed-off-by: Alexey Roytman <roytman@il.ibm.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Alexey Roytman
2021-03-29 00:50:55 +03:00
committed by Ben Pfaff
parent 9801d7c4b8
commit 50b0b4d866
2 changed files with 10 additions and 0 deletions

View File

@@ -1823,6 +1823,11 @@ cmd_destroy(struct ctl_context *ctx)
return;
}
if (!delete_all && ctx->argc == 2) {
VLOG_WARN("either --all or records argument should be specified");
return;
}
if (delete_all) {
const struct ovsdb_idl_row *row;
const struct ovsdb_idl_row *next_row;