-
Notifications
You must be signed in to change notification settings - Fork 667
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
Conversation
Signed-off-by: Abhishek Dosi <[email protected]>
with large route scale of 70K+ routes this can log monit error Transiently which can also fail in sonic-mgmt. Signed-off-by: Abhishek Dosi <[email protected]>
Signed-off-by: Abhishek Dosi <[email protected]>
/azp run |
Pull request contains merge conflicts. |
Signed-off-by: Abhishek Dosi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Abhishek Dosi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Abhishek Dosi <[email protected]>
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@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(): |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
What I did:
On Packet chassis for supervisor do the following:
show interfaces counter
gets sats from LCshow infeface counters -n <> -d all
gets internal port statsshow infeface counters -d all
gets internal port stats