Skip to content

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

Merged
merged 5 commits into from
Sep 5, 2020
Merged

Pfcstat #1097

merged 5 commits into from
Sep 5, 2020

Conversation

smaheshm
Copy link
Contributor

@smaheshm smaheshm commented Sep 4, 2020

[ merge from #1057 ]

  • What I did
    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.

@lgtm-com
Copy link

lgtm-com bot commented Sep 4, 2020

This pull request introduces 5 alerts and fixes 2 when merging 58be765 into a293399 - view on LGTM.com

new alerts:

  • 2 for Unused import
  • 2 for Variable defined multiple times
  • 1 for Unused local variable

fixed alerts:

  • 2 for Variable defined multiple times

@smaheshm
Copy link
Contributor Author

smaheshm commented Sep 4, 2020

@abdosi This is pending on cherry picking sonic-net/sonic-buildimage#5221 into 201911 buildimage.
Will trigger retest once 5221 is cherry picked.

@smaheshm smaheshm requested a review from abdosi September 4, 2020 21:25
@lgtm-com
Copy link

lgtm-com bot commented Sep 4, 2020

This pull request fixes 2 alerts when merging b89e857 into a293399 - view on LGTM.com

fixed alerts:

  • 2 for Variable defined multiple times

@lgtm-com
Copy link

lgtm-com bot commented Sep 4, 2020

This pull request fixes 2 alerts when merging bdabd43 into a293399 - view on LGTM.com

fixed alerts:

  • 2 for Variable defined multiple times

@lgtm-com
Copy link

lgtm-com bot commented Sep 4, 2020

This pull request fixes 2 alerts when merging 5f7e54d into a293399 - view on LGTM.com

fixed alerts:

  • 2 for Variable defined multiple times

@abdosi abdosi merged commit 1a949ca into sonic-net:201911 Sep 5, 2020
@abdosi
Copy link
Contributor

abdosi commented Sep 6, 2020

@smaheshm There is compilation error of pfc stat unit test failing. Please check

@smaheshm
Copy link
Contributor Author

smaheshm commented Sep 8, 2020

raised #1101

abdosi pushed a commit that referenced this pull request Sep 11, 2020
This reverts commit 1a949ca.
abdosi added a commit that referenced this pull request Sep 19, 2020
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
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]>
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants