From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id E39811B3B9 for ; Thu, 31 Jan 2019 04:08:21 +0100 (CET) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id x0V38KgN019831; Thu, 31 Jan 2019 12:08:20 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 74CA9EA796B; Thu, 31 Jan 2019 12:08:20 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 5DC2AEA7AB4; Thu, 31 Jan 2019 12:08:20 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 31 Jan 2019 12:06:12 +0900 Message-Id: <1548903972-17562-3-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548903972-17562-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> References: <1548903972-17562-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 2/2] controller: add lcores in status of spp_nfv 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, 31 Jan 2019 03:08:22 -0000 From: Yasufumi Ogawa This update is to show lcores in status of nfv command. Here is an example. spp > nfv 1; status - status: idling - lcores: [1, 2] - ports: - phy:0 ... Signed-off-by: Yasufumi Ogawa --- src/controller/commands/nfv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/commands/nfv.py b/src/controller/commands/nfv.py index e6f95d0..2613bc2 100644 --- a/src/controller/commands/nfv.py +++ b/src/controller/commands/nfv.py @@ -67,6 +67,7 @@ class SppNfv(object): spp > nfv 1;status - status: idling + - lcores: [1, 2] - ports: - phy:0 -> ring:0 - phy:1 @@ -74,6 +75,7 @@ class SppNfv(object): nfv_attr = json_obj print('- status: %s' % nfv_attr['status']) + print('- lcores: %s' % nfv_attr['lcores']) print('- ports:') for port in nfv_attr['ports']: dst = None -- 2.7.4