Skip to content

[sonic-snmpagent] SONiC physical entity mib extension#1

Closed
Junchao-Mellanox wants to merge 15 commits intomasterfrom
phy-mibs
Closed

[sonic-snmpagent] SONiC physical entity mib extension#1
Junchao-Mellanox wants to merge 15 commits intomasterfrom
phy-mibs

Conversation

@Junchao-Mellanox
Copy link
Copy Markdown
Owner

- What I did

Add new physical entity fan drawer, fan, fan tachometers, PSU, PSU sensor, chassis sensors to physical entity mib.

Implement all mib objects defined in EntPhysicalEntry of RFC 2737.

- How I did it

Refactor rfc2737.py to have different mib updater for different physical entity: XcvrCacheUpdater, FanCacheUpdater, FanDrawerCacheUpdater, PsuCacheUpdater, ThermalCacheUpdater.

- How to verify it

Manual test on MSN2410

- Description for the changelog

"tx4power": 43,
}

PSU_SENSOR_PART_ID_MAP = {
Copy link
Copy Markdown

@keboliu keboliu Sep 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this map common for all vendors?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, all sensor values can get from platform API. If vendor doesn't implement the API, we will give it a None value in psud and it won't be displayed in mib.

jleveque and others added 7 commits September 22, 2020 14:53
Add 'wheel' to the list of packages required for building the package. This way it will be implicitly installed at build time, preventing the need to intstall the 'wheel' package explicitly in our build environment.
* [BGP]:  Currently the data required for CiscoBgp4MIB is retrieved from bgpd deamon. snmp_ax_impl connects to bgpd daemon via tcp socket and retreives the BGP neighbor information required for CiscoBgp4MIB. This design is modified to support multi-asic platform. The data required by CiscoBgp4MIB can be populated in STATE_DB by a new daemon in BGP docker. Changes made:
- snmp_ax_impl to retrieve NEIGH_STATE_TABLE from STATE_DB. This change will affect both single and multi asic platforms. 
- Update bgp MIB unit tests to use STATE_DB data instead of using vtysh socket.
…sonic-net#161)

reinit_data. udpate_data and reinit_data will be invoked by periodic
events. update_data need not be invoked by reinit_data again.
Additional invocation of update_data can cause increase in running time
on multi-asic platform causing Agentx socket connection to break.

Signed-off-by: SuvarnaMeenakshi <[email protected]>
…ss without IPv4 address (sonic-net#164)

* Fix mgmt_ip_sub_oid default value to prevent later exception
* Refix
* Reimplement LLDPLocManAddrUpdater
* Fix test case
* Revert some back and fix lookup()
[LLDP]: Update init_db to load global database config
before initializing SonicV2Connector class.
LLDPLocManAddrUpdater requires information from host database hence uses init_db() to initialize the host db.
For unit-testing multi-asic code path, there are mock db files provided for global_db and namespace specific dbs.
As init_db did not load global database config, unit-test mock db was not loading global_db database files for LLDPLocManAddrUpdater unit-testing. Fixed this by loading global database config in init_db function. Fixed by:
Loading global database config in init_db()
unit-test: Loading mock db files from "global_db" director for multi-asic platform if namespace is empty or None.
…Pv6 address (sonic-net#167)

* Add a test case for LLDP_LOC_CHASSIS.lldp_loc_man_addr has only one IPv6 address
* Remove IPv4 on asicN namespace's appl_db
@Junchao-Mellanox
Copy link
Copy Markdown
Owner Author

sonic-net#168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants