Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
- What I did
EntityMIB and SensorMIB support for board voltage and current sensors.
Ref Hld : sonic-net/SONiC#1394
- How I did it
Modified implementations of entity MIB and SensorMIB to fetch data from sensor data from redis.
- How to verify it
Unit test Added.
Verified with SNMP walk on target.
root@sonic:/home/cisco# docker exec -it snmp snmpwalk -v2c -c public 127.0.0.1 iso.3.6.1.2.1.47.1.1.1.1 | grep 200240150
iso.3.6.1.2.1.47.1.1.1.1.2.200240150 = STRING: "MB_VP54P0V"
iso.3.6.1.2.1.47.1.1.1.1.3.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.4.200240150 = INTEGER: 200000000
iso.3.6.1.2.1.47.1.1.1.1.5.200240150 = INTEGER: 8
iso.3.6.1.2.1.47.1.1.1.1.6.200240150 = INTEGER: 1
iso.3.6.1.2.1.47.1.1.1.1.7.200240150 = STRING: "MB_VP54P0V"
iso.3.6.1.2.1.47.1.1.1.1.8.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.9.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.10.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.11.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.12.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.13.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.14.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.15.200240150 = ""
iso.3.6.1.2.1.47.1.1.1.1.16.200240150 = INTEGER: 2
root@sonic:/home/cisco# docker exec -it snmp snmpwalk -v2c -c public 127.0.0.1 iso.3.6.1.2.1.99.1.1.1 | grep 200240150
iso.3.6.1.2.1.99.1.1.1.1.200240150 = INTEGER: 4
iso.3.6.1.2.1.99.1.1.1.2.200240150 = INTEGER: 8
iso.3.6.1.2.1.99.1.1.1.3.200240150 = INTEGER: 0
iso.3.6.1.2.1.99.1.1.1.4.200240150 = INTEGER: 54050
iso.3.6.1.2.1.99.1.1.1.5.200240150 = INTEGER: 1
- Description for the changelog