-
Notifications
You must be signed in to change notification settings - Fork 711
Pfcstat #1097
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
Pfcstat #1097
Conversation
This pull request introduces 5 alerts and fixes 2 when merging 58be765 into a293399 - view on LGTM.com new alerts:
fixed alerts:
|
@abdosi This is pending on cherry picking sonic-net/sonic-buildimage#5221 into 201911 buildimage. |
This pull request fixes 2 alerts when merging b89e857 into a293399 - view on LGTM.com fixed alerts:
|
This pull request fixes 2 alerts when merging bdabd43 into a293399 - view on LGTM.com fixed alerts:
|
This pull request fixes 2 alerts when merging 5f7e54d into a293399 - view on LGTM.com fixed alerts:
|
@smaheshm There is compilation error of pfc stat unit test failing. Please check |
raised #1101 |
update the environment variable in the teardown (sonic-net#1101) Fix for show interface portchannel now working on 201911 (sonic-net#1105) Revert "Pfcstat (sonic-net#1097)" Revert " [201911]show interface counters for multi ASIC devices (sonic-net#1104)" Signed-off-by: Abhishek Dosi <[email protected]>
Revert "Revert " [201911]show interface counters for multi ASIC devices (sonic-net#1104)"" Revert "Revert "Pfcstat (sonic-net#1097)"" [show] Fix 'show int neighbor expected' (sonic-net#1106) Update argument for docker exec it->i (sonic-net#1118) Update to make config load/reload backward compatible. (sonic-net#1115) Handling deletion of Port Channel before deletion of its members (sonic-net#1062) Skip default route present in ASIC-DB but not in APP-DB. (sonic-net#1107) [CLI][PFCWD][Multi-ASIC] Added multi ASIC support to 'pfcwd' CLI (sonic-net#1102) [201911] Multi asic platform config interface portchannel, show transceiver (sonic-net#1087) [drop counters] Fix configuration for counters with lowercase names (sonic-net#1103) Signed-off-by: Abhishek Dosi <[email protected]>
[ merge from #1057 ]
Added 'multi ASIC' support to the 'show pfc counters' CLI. Modified 'pfcstat' command to include multi ASIC args.
By default 'show pfc counters' or 'pfcstat' display the counters for the front end ports. To display on all ports "-s all" option must be specified. On single ASIC platforms by default all port counters are shown, there's no effect of '-s' (show) option.
How I did it
Modified show/main.py and 'pfcstat' to include multi ASIC options and args respectively.
Used multi ASIC common APIs and decorator to collect information from specified namespaces or all namespaces (by default).
How to verify it
Verified the commands on multi ASIC platform.