Closed SuvarnaMeenakshi closed 3 months ago
You mentioned "on linecard num_psus is not present". From design point of view, is it by design or a bug? If it is a bug, should we fix the database content instead of snmpagent?
closing this PR, raised a issue to fix this on Nokia platform https://github.com/sonic-net/sonic-buildimage/issues/19535
- What I did If SNMP query is sent to get the PSU details, implementation catches Exception on Chassis Linecard. This Exception log message is seen for every SNMP query made and can cause many syslogs if continuous polling is done.
This error is seen because SNMP implementation expects num_psus to be present in CHASSIS_INFO table. But on linecard num_psus is not present.
- How I did it If SNMP query is made on Chassis Linecard, then return num_psus as 0. No change on single asic device. - How to verify it Verified that no Exception is logged on Chassis Linecard, also added unit-tests. - Description for the changelog