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 06F2D1B4DE for ; Tue, 9 Oct 2018 12:50: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 w99Aouxf017802; Tue, 9 Oct 2018 19:50:56 +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 CA94D125; Tue, 9 Oct 2018 19:50:56 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id B5045119; Tue, 9 Oct 2018 19:50: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: Tue, 9 Oct 2018 19:50:46 +0900 Message-Id: <20181009105047.42568-4-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20181009105047.42568-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20181009105047.42568-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 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: Tue, 09 Oct 2018 10:50: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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spp-ctl/spp_proc.py b/src/spp-ctl/spp_proc.py index aa83b76..726de3e 100644 --- a/src/spp-ctl/spp_proc.py +++ b/src/spp-ctl/spp_proc.py @@ -146,11 +146,11 @@ class NfvProc(SppProc): @exec_command def port_add(self, if_type, if_num): - return "add {if_type} {if_num}".format(**locals()) + return "add {if_type}:{if_num}".format(**locals()) @exec_command def port_del(self, if_type, if_num): - return "del {if_type} {if_num}".format(**locals()) + return "del {if_type}:{if_num}".format(**locals()) @exec_command def patch_add(self, src_port, dst_port): -- 2.7.4