Skip to content

Commit 18df3ae

Browse files
authored
show pfcwd status to be 'N/A' when pfcwd is stopped (sonic-net#682)
Signed-off-by: Wenda Ni <[email protected]>
1 parent 7b46397 commit 18df3ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfcwd/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def stats(empty, queues):
9090
line = stats.get(stat[1], '0') + '/' + stats.get(stat[2], '0')
9191
stats_list.append(line)
9292
if stats_list != ['0/0'] * len(STATS_DESCRIPTION) or empty:
93-
table.append([queue, stats['PFC_WD_STATUS']] + stats_list)
93+
table.append([queue, stats.get('PFC_WD_STATUS', 'N/A')] + stats_list)
9494

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

0 commit comments

Comments
 (0)