Message ID | 20210328215056.3727457-2-aroytman@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=iDE1I/II; dkim-atps=neutral Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F8Jm51n8Wz9sW0 for <incoming@patchwork.ozlabs.org>; Tue, 30 Mar 2021 04:02:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B8C0860723; Mon, 29 Mar 2021 17:02:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B-INmFkSbqwS; Mon, 29 Mar 2021 17:02:26 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTP id 01442606F5; Mon, 29 Mar 2021 17:02:25 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id DEB54C0013; Mon, 29 Mar 2021 17:02:23 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id ECBB5C000A for <dev@openvswitch.org>; Sun, 28 Mar 2021 21:51:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id CF7CB60640 for <dev@openvswitch.org>; Sun, 28 Mar 2021 21:51:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ft-C8uUCuk-3 for <dev@openvswitch.org>; Sun, 28 Mar 2021 21:51:33 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by smtp3.osuosl.org (Postfix) with ESMTPS id 2BA2B60632 for <dev@openvswitch.org>; Sun, 28 Mar 2021 21:51:33 +0000 (UTC) Received: by mail-ej1-x62a.google.com with SMTP id kt15so16430738ejb.12 for <dev@openvswitch.org>; Sun, 28 Mar 2021 14:51:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jm+C/Uf1CHlQnZKX9w5iH1aN620gB64bwuSG103IWlo=; b=iDE1I/IIST9wGp4rzMGxiods6qOIllg+D4nV9WS01bs59S2ULSF8EKun9G5ex1RAMu uDQ0AVhtns6XV1IzkYRFMpGAJVU1MU8e18Cg/6Tq4mHn29YqTljzMjXr9z6vbYpGAwZr OkQLOhzonbFVXemzQ/wtz42glB4VnIquD3vy4p10e1QZQmiru3XC61KthhZD5wy/toz8 IcB86h/ejokGIZVj+iecxsrSp6YdlW+8VmkpV9cTBkIqBgbadbEwfiHbTsG+ob3knQhp Kv/xF63b3JwUv++VsqEwfTR+zmBSuO6GN/+agfHiv0+/gVRKz1zCQe/ZwfFh67ENJ796 c+4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jm+C/Uf1CHlQnZKX9w5iH1aN620gB64bwuSG103IWlo=; b=E62qbDKfbEZNJB1IYzCxiVW1CzVUnyJoFGA2l3zUXQDN6U8UBEyg1AMDK6b0rrievR B+EGP8H6pi+eTExCUcsH3YKtJleGv19MAl8QmdgFBCV8Ul4AbcxcQ5rrBlxCEtxMEA2S y/7DfVBfOO+0ahJ+1xwHMtyyuLiKeNUVHrVDUa2AobbCw4/ForKMzlb/DG+rRKz6kPVj MdvRPCG6PRM8BF5nLCNDphTxpCsonQBTm2B4rMsmc+mClzYqF6mkg/z9e7MTwL2wj7Ru QaguLkDh9WMqL6rT5mIo+k6B+2c3NXWp4FOwVN5MV4fg7F6/IM7yOLfiBBpNznjHOllr m/Ug== X-Gm-Message-State: AOAM5330pVdPY+24ktlQm2zAI5GQX1gOqkqpua6IFmT9wvLWOYuHOvr1 2MwpUbgcdQhENebnGP/cjlHD0f9jaQNH7Q== X-Google-Smtp-Source: ABdhPJwPNqBnf+mIUwANaVgFQfcjFuJwlnV4cnKyppKkVdgX1v0mYoqh/tu1uuIdCeYQHO0sR9IcMA== X-Received: by 2002:a17:906:aac5:: with SMTP id kt5mr26298735ejb.548.1616968291007; Sun, 28 Mar 2021 14:51:31 -0700 (PDT) Received: from localhost (93-172-37-197.bb.netvision.net.il. [93.172.37.197]) by smtp.gmail.com with ESMTPSA id q19sm7083688ejy.50.2021.03.28.14.51.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 28 Mar 2021 14:51:30 -0700 (PDT) From: Alexey Roytman <aroytman@gmail.com> To: dev@openvswitch.org Date: Mon, 29 Mar 2021 00:50:55 +0300 Message-Id: <20210328215056.3727457-2-aroytman@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210328215056.3727457-1-aroytman@gmail.com> References: <20210328215056.3727457-1-aroytman@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 29 Mar 2021 17:02:20 +0000 Cc: Alexey Roytman <roytman@il.ibm.com> Subject: [ovs-dev] [PATCH v2 1/2] lib/db-ctl-base.c: Check that --all option or records argument provided X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
OVSDB CLI destroy command, check that --all or records argument provided
|
expand
|
diff --git a/lib/db-ctl-base.c b/lib/db-ctl-base.c index e95c77da2..77cc76a9f 100644 --- a/lib/db-ctl-base.c +++ b/lib/db-ctl-base.c @@ -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;