[spp] [PATCH 2/2] cli: fix status display of pipes

Itsuro Oda oda at valinux.co.jp
Mon Apr 13 01:02:21 CEST 2020


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 at 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



More information about the spp mailing list