Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[multi-asic]: Udpate to use SonicDBConfig from swsscommon (sonic-net#219
) **- What I did** Update snmpagent to use SonicDBConfig from swsscommon. **- How I did it** - Update import of SonicDBConfig - init_namespace_dbs should return list of all namespace connector classes. Ensure that the list ordering is maintained such that the first element of the list is of the default namespace. **- How to verify it** Tested on single asic VS; SNMP service starts without any error log. Execute snmpwalk on one of the OIDs: admin@vlab-01:~$ docker exec -it snmp snmpwalk -v2c -c public 127.0.0.1 iso.3.6.1.2.1.2.2.1.2 iso.3.6.1.2.1.2.2.1.2.1 = STRING: "fortyGigE0/0" iso.3.6.1.2.1.2.2.1.2.5 = STRING: "fortyGigE0/4" iso.3.6.1.2.1.2.2.1.2.9 = STRING: "fortyGigE0/8" iso.3.6.1.2.1.2.2.1.2.13 = STRING: "fortyGigE0/12" iso.3.6.1.2.1.2.2.1.2.17 = STRING: "fortyGigE0/16" iso.3.6.1.2.1.2.2.1.2.21 = STRING: "fortyGigE0/20" iso.3.6.1.2.1.2.2.1.2.25 = STRING: "fortyGigE0/24" iso.3.6.1.2.1.2.2.1.2.29 = STRING: "fortyGigE0/28" .. iso.3.6.1.2.1.2.2.1.2.10000 = STRING: "eth0" Tested on multi asic VS; SNMP service starts without any error log. admin@vlab-08:~$ docker exec -it snmp snmpwalk -v2c -c public 127.0.0.1 iso.3.6.1.2.1.2.2.1.2 Execute snmpwalk on one of the OIDs: iso.3.6.1.2.1.2.2.1.2.1 = STRING: "Ethernet1/1" iso.3.6.1.2.1.2.2.1.2.5 = STRING: "Ethernet1/2" iso.3.6.1.2.1.2.2.1.2.9 = STRING: "Ethernet1/3" iso.3.6.1.2.1.2.2.1.2.13 = STRING: "Ethernet1/4" iso.3.6.1.2.1.2.2.1.2.17 = STRING: "Ethernet1/5" iso.3.6.1.2.1.2.2.1.2.21 = STRING: "Ethernet1/6" iso.3.6.1.2.1.2.2.1.2.25 = STRING: "Ethernet1/7" iso.3.6.1.2.1.2.2.1.2.29 = STRING: "Ethernet1/8" iso.3.6.1.2.1.2.2.1.2.1001 = STRING: "PortChannel0001" .. iso.3.6.1.2.1.2.2.1.2.9000 = STRING: "Eth4-ASIC0" iso.3.6.1.2.1.2.2.1.2.9004 = STRING: "Eth5-ASIC0" iso.3.6.1.2.1.2.2.1.2.9008 = STRING: "Eth6-ASIC0" iso.3.6.1.2.1.2.2.1.2.9012 = STRING: "Eth7-ASIC0" ...
- Loading branch information