Soft Patch Panel
 help / color / mirror / Atom feed
From: Itsuro Oda <oda@valinux.co.jp>
To: spp@dpdk.org, ferruh.yigit@intel.com, yasufum.o@gmail.com
Subject: [spp] [PATCH 2/2] cli: fix status display of pipes
Date: Mon, 13 Apr 2020 08:02:21 +0900	[thread overview]
Message-ID: <20200412230221.28737-3-oda@valinux.co.jp> (raw)
In-Reply-To: <20200412230221.28737-1-oda@valinux.co.jp>

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 <oda@valinux.co.jp>
---
 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


  parent reply	other threads:[~2020-04-12 23:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-12 23:02 [spp] [PATCH 0/2] enabel to add pipe withcout forwarder Itsuro Oda
2020-04-12 23:02 ` [spp] [PATCH 1/2] cli: enable to add pipe without forwarder Itsuro Oda
2020-04-12 23:02 ` Itsuro Oda [this message]
2020-04-30  2:41 ` [spp] (x-fn-spp-ml 677) [PATCH 0/2] enabel to add pipe withcout forwarder Hideyuki Yamashita
2020-05-25  3:10 ` [spp] " Yasufumi Ogawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200412230221.28737-3-oda@valinux.co.jp \
    --to=oda@valinux.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    --cc=yasufum.o@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).