Skip to content

Commit

Permalink
show pfcwd status to be 'N/A' when pfcwd is stopped (sonic-net#682)
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <wenni@microsoft.com>
  • Loading branch information
wendani committed Oct 2, 2019
1 parent 7b46397 commit 18df3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pfcwd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def stats(empty, queues):
line = stats.get(stat[1], '0') + '/' + stats.get(stat[2], '0')
stats_list.append(line)
if stats_list != ['0/0'] * len(STATS_DESCRIPTION) or empty:
table.append([queue, stats['PFC_WD_STATUS']] + stats_list)
table.append([queue, stats.get('PFC_WD_STATUS', 'N/A')] + stats_list)

click.echo(tabulate(table, STATS_HEADER, stralign='right', numalign='right', tablefmt='simple'))

Expand Down

0 comments on commit 18df3ae

Please sign in to comment.