Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[port_util] Allow system without ports in config db run without errors (
#109) **What I did** Allow system with no ports in config db to run without errors/warnings. This is needed for modular system which should boot and run properly without line cards. **How I did it** Check if table exists before calling get_all for it and return empty list if there are no ports in COUNTERS_PORT_NAME_MAP table in counters db. **How to verify it** Run snmpwalk on the root oid. **Important** This PR must be merged before PR sonic-net/sonic-snmpagent#221 is merged.
- Loading branch information