Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[watermarkstat] Fix CLI script for unconfigured PG counters (#2239)
Signed-off-by: Nazarii Hnydyn [email protected] Propagating #2220 with resolved review comments 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 "iface_namingmode/test_iface_namingmode.py" including this PR: sonic-net/sonic-swss#2143 and observe it passes.
- Loading branch information