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:
committed by
Ben Pfaff
parent
9801d7c4b8
commit
50b0b4d866
@@ -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;
|
||||
|
Reference in New Issue
Block a user