@@ -17,6 +17,7 @@ from collections import OrderedDict, namedtuple
17
17
from natsort import natsorted
18
18
from tabulate import tabulate
19
19
from sonic_py_common import multi_asic
20
+ from sonic_py_common import device_info
20
21
21
22
# mock the redis for unit test purposes #
22
23
try :
@@ -337,8 +338,8 @@ class Portstat(object):
337
338
print (table_as_json (table , header ))
338
339
else :
339
340
print (tabulate (table , header , tablefmt = 'simple' , stralign = 'right' ))
340
- if multi_asic .is_multi_asic ():
341
- print ("\n Reminder: Please execute 'show interface counters -d all' to include internal links\n " )
341
+ if multi_asic .is_multi_asic () or device_info . is_chassis ():
342
+ print ("\n Reminder: Please execute 'show interface counters -d all' to include internal links\n " )
342
343
343
344
def cnstat_intf_diff_print (self , cnstat_new_dict , cnstat_old_dict , intf_list ):
344
345
"""
@@ -555,8 +556,8 @@ class Portstat(object):
555
556
print (table_as_json (table , header ))
556
557
else :
557
558
print (tabulate (table , header , tablefmt = 'simple' , stralign = 'right' ))
558
- if multi_asic .is_multi_asic ():
559
- print ("\n Reminder: Please execute 'show interface counters -d all' to include internal links\n " )
559
+ if multi_asic .is_multi_asic () or device_info . is_chassis ():
560
+ print ("\n Reminder: Please execute 'show interface counters -d all' to include internal links\n " )
560
561
561
562
def main ():
562
563
parser = argparse .ArgumentParser (description = 'Display the ports state and counters' ,
0 commit comments