forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance new platform API (sonic-net#19)
* Changes of SONiC new platform API based on latest design * Moved get_change_event from DeviceBase to ChassisBase and ModuleBase * chassis_base.py : added get_change_event device_base.py : fixed typo fan_base.py : defined DEVICE_TYPE module_base.py : defined DEVICE_TYPE, fixed typo psu_base.py : defined DEVICE_TYPE sfp_base.py : defined DEVICE_TYPE, fixed typo, modified descriptions of set_power_override thermal_base.py : defined DEVICE_TYPE * module_base.py : modified get_change_event to return devices in nested dict * Added dom related status support for SFP, including temperature, voltage, TX bias, TX power and RX power * 1. Per channel return for TX bias, TX power and RX power in sfp_base.py. 2. Support system EEPROM and serial number in chassis_base.py. * 1. Added SYS EEPROM functions to module_base.py. 2. Fixed typos. 3. Merge get_watchdog to return self._watchdog in chassis_base * 1. Fixed various typos. 2. Changed get_ampere to get_current, get_watt to get_power in psu_base.py * Changed get_system_eeprom return to use type code defined in ONIE TlvInfo EEPROM as the keys
- Loading branch information
1 parent
92b54b1
commit e550a3c
Showing
7 changed files
with
744 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.