sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

Fix multi-asic behaviour for pg-drop

Open bktsim-arista opened this issue 1 year ago • 0 comments

What I did

show priority-group drop is not behaving correctly on multi-asic devices, as the namespace option '-n' is not available and correct namespaces were not traversed to retrieve drop counters. This change fixes the multi-asic behaviour of this command and adds unit tests to ensure that the functionality is correct.

This is a part of the set of changes being pushed for https://github.com/sonic-net/sonic-buildimage/issues/15148

How I did it

Added multi-asic support and relevant unit tests for pg-drop script.

How to verify it

Run unit test, or pg-drop -c show with -n

bktsim-arista avatar Nov 30 '23 17:11 bktsim-arista