Skip to content

Commit

Permalink
add back multi_asic check
Browse files Browse the repository at this point in the history
as this original change is mainly for multi-asic production devices
  • Loading branch information
wenyiz2021 authored Feb 11, 2023
1 parent cb79d57 commit 4f4c610
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/portstat
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ class Portstat(object):
print(table_as_json(table, header))
else:
print(tabulate(table, header, tablefmt='simple', stralign='right'))
print("\nReminder: Please execute 'show interface counters -d all' to include internal links\n")
if multi_asic.is_multi_asic():
print("\nReminder: Please execute 'show interface counters -d all' to include internal links\n")

def cnstat_intf_diff_print(self, cnstat_new_dict, cnstat_old_dict, intf_list):
"""
Expand Down Expand Up @@ -554,7 +555,8 @@ class Portstat(object):
print(table_as_json(table, header))
else:
print(tabulate(table, header, tablefmt='simple', stralign='right'))
print("\nReminder: Please execute 'show interface counters -d all' to include internal links\n")
if multi_asic.is_multi_asic():
print("\nReminder: Please execute 'show interface counters -d all' to include internal links\n")

def main():
parser = argparse.ArgumentParser(description='Display the ports state and counters',
Expand Down

0 comments on commit 4f4c610

Please sign in to comment.