From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bcmv-tmail01.ecl.ntt.co.jp (bcmv-tmail01.ecl.ntt.co.jp [124.146.185.148]) by dpdk.org (Postfix) with ESMTP id 23F821B3A5 for ; Thu, 11 Oct 2018 12:33:57 +0200 (CEST) Received: from bcmv-ns01.ecl.ntt.co.jp (bcmv-ns01.ecl.ntt.co.jp [129.60.83.123]) by bcmv-tmail01.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id w9BAXu4Q005240; Thu, 11 Oct 2018 19:33:57 +0900 Received: from bcmv-ns01.ecl.ntt.co.jp (localhost [127.0.0.1]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id E2FBE125; Thu, 11 Oct 2018 19:33:56 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id CD6B0105; Thu, 11 Oct 2018 19:33:56 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 11 Oct 2018 19:33:46 +0900 Message-Id: <20181011103347.48630-4-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20181011103347.48630-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20181009105047.42568-1-ogawa.yasufumi@lab.ntt.co.jp> <20181011103347.48630-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH v2 3/4] spp-ctl: update syntax of add and del command 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: , X-List-Received-Date: Thu, 11 Oct 2018 10:33:58 -0000 From: Yasufumi Ogawa Because add and del command are updated to use resource UID, spp-ctl is also updated to use resource UID. Signed-off-by: Yasufumi Ogawa --- src/spp-ctl/spp_proc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/spp-ctl/spp_proc.py b/src/spp-ctl/spp_proc.py index aa83b76..3b01e3f 100644 --- a/src/spp-ctl/spp_proc.py +++ b/src/spp-ctl/spp_proc.py @@ -145,12 +145,12 @@ class NfvProc(SppProc): return "status" @exec_command - def port_add(self, if_type, if_num): - return "add {if_type} {if_num}".format(**locals()) + def port_add(self, port): + return "add {port}".format(**locals()) @exec_command - def port_del(self, if_type, if_num): - return "del {if_type} {if_num}".format(**locals()) + def port_del(self, port): + return "del {port}".format(**locals()) @exec_command def patch_add(self, src_port, dst_port): -- 2.7.4