Skip to content
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

Fix missing queues in SNMP MIB when create_only_db_buffers=true (test_snmp_queue_counters.py) #340

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dgodwin-nokia
Copy link

- What I did
This will fix current failure in test_snmp_queue_counters.py on platforms which have a different number of unicast and multicast queue (example Tomahawk4 with 8 unicast and 4 multicast queues configured)

- How I did it
Without these changes, when create_only_db_buffers=true and some intermediary interface queues are removed, SNMP MIB will be missing queues that are configured.

The test failure specifically sees queues 1-7 on Ethernet0, then removes queues 3-4 on Ethernet0. Subsequent MIB polling returns only queues 1,2,5,6 (Missing queue 7).

Added some additional logic on top of changes made in #330 to also check for "max_priority_groups" in buffer_parms, and use it to loop through queues if it is greater than max_queues/2 (only 6 on TH4 platform which is what was fixed in #330) and greater than the count of UNICAST queues in the DB.

- How to verify it
Logic should not break other platforms. Verified on Nokia H4-64D. Reran all SNMP tests in mgmt and they pass including
test_snmp_queue_counters.py

- Description for the changelog
Fix missing queues in SNMP MIB when create_only_db_buffers=true

This will fix current failure in test_snmp_queue_counters.py on
platforms which have a different number of unicast and multicast queue
(example Tomahawk4 with 8 unicast and 4 multicast queues configured)

What I did:
Added some additional logic on top of changes made in
sonic-net#330 to also check for
"max_priority_groups" in buffer_parms, and use it to loop through queues
if it is greater than max_queues/2 (only 6 on TH4 platform which is what
was fixed in sonic-net#330) and greater than the count of UNICAST queues in the
DB.

How I verified:
Logic should not break other platforms. Verified on Nokia H4-64D. Reran
all SNMP tests in mgmt and they pass including
test_snmp_queue_counters.py
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.

1 participant