Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed show interface counters on supervisor for packet chassis #3703

Merged
merged 13 commits into from
Jan 4, 2025

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Jan 3, 2025

What I did:

On Packet chassis for supervisor do the following:

show interfaces counter gets sats from LC

show infeface counters -n <> -d all gets internal port stats

show infeface counters -d all gets internal port stats

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Pull request contains merge conflicts.

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Abhishek Dosi <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi abdosi requested a review from BYGX-wcr January 3, 2025 01:23
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Abhishek Dosi <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi
Copy link
Contributor Author

abdosi commented Jan 3, 2025

@yejianquan for viz.

@@ -405,7 +408,9 @@ def cnstat_print(self, cnstat_dict, ratestat_dict, intf_list, use_json, print_al
print(table_as_json(table, header))
else:
print(tabulate(table, header, tablefmt='simple', stralign='right'))
if (multi_asic.is_multi_asic() or device_info.is_chassis()) and not use_json:
if device_info.is_voq_chassis():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it mean for voq chassis, we don't have internal links, so run with '-d all' makes no differences?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yejianquan : yes for voq chassis we have fabric links [not ethernet links] and we have separate command to get counters for those.

Copy link
Contributor

@BYGX-wcr BYGX-wcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good. Further Document Update may be needed.

@abdosi abdosi merged commit 3aec519 into sonic-net:master Jan 4, 2025
7 checks passed
@abdosi abdosi deleted the abdosi-patch-2 branch January 4, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants