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 9126FA057B for ; Mon, 13 Apr 2020 01:02:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 877842A5D; Mon, 13 Apr 2020 01:02:23 +0200 (CEST) Received: from mail.valinux.co.jp (mail.valinux.co.jp [210.128.90.3]) by dpdk.org (Postfix) with ESMTP id 5A1182986 for ; Mon, 13 Apr 2020 01:02:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.valinux.co.jp (Postfix) with ESMTP id 9AD639F6FC; Mon, 13 Apr 2020 08:02:21 +0900 (JST) X-Virus-Scanned: Debian amavisd-new at valinux.co.jp Received: from mail.valinux.co.jp ([127.0.0.1]) by localhost (mail.valinux.co.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vUIr5gdEwHV6; Mon, 13 Apr 2020 08:02:21 +0900 (JST) Received: from valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by mail.valinux.co.jp (Postfix) with ESMTP id 6FA6C9FC97; Mon, 13 Apr 2020 08:02:21 +0900 (JST) From: Itsuro Oda To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com Date: Mon, 13 Apr 2020 08:02:21 +0900 Message-Id: <20200412230221.28737-3-oda@valinux.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200412230221.28737-1-oda@valinux.co.jp> References: <20200412230221.28737-1-oda@valinux.co.jp> Subject: [spp] [PATCH 2/2] cli: fix status display of pipes 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" This patch fixes the indent of pipes in the status display of the spp_primary. It should be the most left side because it is a top attribute of json response. Fixes: 427350f31cfe (cli: support pipe PMD) Signed-off-by: Itsuro Oda --- src/cli/commands/pri.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/commands/pri.py b/src/cli/commands/pri.py index 3f5da29..77297b3 100644 --- a/src/cli/commands/pri.py +++ b/src/cli/commands/pri.py @@ -239,9 +239,9 @@ class SppPrimary(object): print(' - {} -> {}'.format(port, dst)) if ('pipes' in json_obj): - print(' - pipes:') + print('- pipes:') for pipe in json_obj['pipes']: - print(' - pipe:{} ring:{} ring:{}'.format(pipe['id'], + print(' - pipe:{} ring:{} ring:{}'.format(pipe['id'], pipe['rx'], pipe['tx'])) if ('phy_ports' in json_obj) or ('ring_ports' in json_obj): -- 2.17.0