From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 530A6A0524 for ; Tue, 25 Feb 2020 11:35:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4B88E1BFB2; Tue, 25 Feb 2020 11:35:34 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by dpdk.org (Postfix) with ESMTP id 8E9FCB62 for ; Tue, 25 Feb 2020 11:35:32 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id ay11so5332184plb.0 for ; Tue, 25 Feb 2020 02:35:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=/QN1nWO8P4NQaaeVQnv4eVu6mxHWQQB2bwjZQxp24R4=; b=M+LLal63Mc74oZjOwxcLxhnsU5eMl9ezuYRTXmuSrnb1uAck+KM4qSiALiSw1+Mri3 YCOhe3AHv+FMbGR250Dc/3z/LXPgurT2y43oVjXpyKwn3ZOFKkGNb968kglEmvVMExbw l/2g7EPyLOalJKxYn5uAv3wmz3RJD/15RXyAyy9tfwpFc51EKzAcSiH111Y12n6fgQyG SOOil9HGxOM4ZWTwV7DJEezvPzt9rvxNO5QMzElFi56w1fFTLFygP/dJqQtzy/MNmYyn GiL2mSiuhuLnS/momIfjUDTfmtNSu++kQI9LvcRNJxYcUF0EQbu0XiZ2HuEl0iqQqA4F iWbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=/QN1nWO8P4NQaaeVQnv4eVu6mxHWQQB2bwjZQxp24R4=; b=tElPJwanpGX2nAmWhMX3nN/HVyusHTd+z7xmtnj4v68NU/WIzkHC0/Up+s+S4YJ9LH VO6VGC5UDjCX9dVc3VeaPOQK0/P9CrVhKcLMyibeyIN/I1x8t+IJkFCXVDftJksgcDmF Uzxm05Vdus3tlf68uUo16Acw5FhTtlplgZJ3uTrzzqdfr4p6oZwNGAzgbgrzP0IVO1BC Sj5IdGKrkKsQ4DsrorPEN3yzE+f9TTzKvUP9ksfIT5F4MuYxcVfHVApoOXf+TNoMWLWT 9dkdpUxXN9yPayMpREK7pZ+/tMWovHltLO5bMlzZJZEbhAkbNgpQpTzPCFyjGvau1ztP QWdQ== X-Gm-Message-State: APjAAAVV23hhAkLmBVVpfaCw6zGbc8CyvKDi5iXBb3cMop4LhIh9hy+F U8UZV66LevzMAtt3pNtSP+kaIlBt X-Google-Smtp-Source: APXvYqxJ/Ll7nXqxMizaRIpz8WtJnloJUcniIC7Pu7tY3L4TugiN4q+JM6vNvOA52ZDESs/swF9Fcg== X-Received: by 2002:a17:902:8485:: with SMTP id c5mr2266597plo.156.1582626931651; Tue, 25 Feb 2020 02:35:31 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c8c2:de00:35bc:b9a3:f404:3cf2]) by smtp.gmail.com with ESMTPSA id a10sm15819987pgk.71.2020.02.25.02.35.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 02:35:31 -0800 (PST) From: Yasufumi Ogawa To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Tue, 25 Feb 2020 19:34:40 +0900 Message-Id: <20200225103446.8243-24-yasufum.o@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200225103446.8243-1-yasufum.o@gmail.com> References: <20200225103446.8243-1-yasufum.o@gmail.com> Subject: [spp] [PATCH 23/29] tools/sppc: skip checking rule file if dry run X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spp-bounces@dpdk.org Sender: "spp" In l3fwd-acl container app, it checks rule file is existing even if for --dry-run, but has no meaning. This update is disable useless checking for --dry-run. Signed-off-by: Yasufumi Ogawa --- tools/sppc/app/l3fwd-acl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sppc/app/l3fwd-acl.py b/tools/sppc/app/l3fwd-acl.py index 11dcc85..15d0a26 100755 --- a/tools/sppc/app/l3fwd-acl.py +++ b/tools/sppc/app/l3fwd-acl.py @@ -209,14 +209,14 @@ def main(): if os.path.exists(args.rule_ipv4): l3fwd_opts += ['--rule_ipv4', '"{:s}"'.format(args.rule_ipv4), '\\'] - else: + elif args.dry_run is not True: print('Error: "{}" does not exist'.format(args.rule_ipv4)) exit() if args.rule_ipv6 is not None: if os.path.exists(args.rule_ipv6): l3fwd_opts += ['--rule_ipv6', '"{:s}"'.format(args.rule_ipv6), '\\'] - else: + elif args.dry_run is not True: print('Error: "{}" does not exist'.format(args.rule_ipv6)) exit() -- 2.17.1