Open dgodwin-nokia opened 2 months ago
@qiluo-msft can help review your potential fix PR. @dgodwin-nokia Thanks!
This issue was fixed by a seperate PR (https://github.com/sonic-net/sonic-snmpagent/commit/c5301b2cf94304deb8e09959d67af6a089155507) but there is still an issue remaining that fails when "config_only_db_buffers" is used. Will file a new issue/PR for that.
Description
Observed that sonic-mgmt/test_snmp_queue.py::test_snmp_queue fails on Nokia-IXR7220-H4.
The mib that is being used is in:
https://github.com/sonic-net/sonic-snmpagent/blob/master/src/sonic_ax_impl/mibs/vendor/cisco/ciscoSwitchQosMIB.py
The code assumes there is an equal number of multicast and unicast queues, but that is not the case for some platforms. TH4/TH5 based platforms will have 8 ucast and 4 mcast queues by default.
Code from above referenced file:
Output of "max_queues" from BUFFER_MAX_PARM_TABLE referenced on TH4 based platform:
Since max_queues is 12 (8 ucast + 4 mcast), the code in ciscoSwitchQosMIB.py wraps on queue 6, and ends up only generating queue 1-6 as shown in the output above.
I am not sure if "max_priority_groups" could be used as a value to key on instead.
Steps to reproduce the issue:
Run sonic-mgmt/test_snmp_queue.py::test_snmp_queue.
Describe the results you received:
Test failure:
Can also be seen with the following snmp command:
Describe the results you expected:
Expected to see queues 1-8 in SNMP MIB. (MIB output above shows only 1-6 (second to the last digit in object).
Additional information: