Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[drop counters] Fix CLI script for unconfigured PGs (#2518)
- What I did Since PG counters are created only if they are configured in the switch, it is not enough to relay only on the first entry in the DB when building the output table of watermarkstat script. We need to go over all configured counters, check what is the max configured and build the table accordingly. - How I did it Iterate all configured PG buffers for all ports and find the max index. Build the output table according to the max index. - How to verify it Run test "pgdropstat_test.py" including this PR and observe it passes.
- Loading branch information