-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[psu_base] get_status_led() returns current state of the status LED #39
Conversation
jleveque
commented
Jul 5, 2019
- Also add the same function to fan_base.py.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_status_led in fan.py - Comment says "PSU"; pls change to FAN.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In psu.py, please add AMBER in the color list.
Also, is it better to rename those variables " STATUS_LED_COLOR_GREEN" as "PSU_STATUS_LED_COLOR_GREEN". This way,we can keep separate variables for FAN LEDs and separate variables for front panel LEDs. For example, in case of front panel LEDs, blue color is also valid, which is invalid in case of power LEDs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
psu.py: In addition to returning color, shall we return the "flashing" status also? We think that most of the vendors support "flashing" status also which can hold "Solid" or "Blinking" values. If yes, lets change the return value as tuple instead of simple string.
Added
I feel this is unnecessary since these are class members. They need to be accessed by referencing the class (e.g.,
We could go the tuple route, or we could simply add new "colors," e.g., |
'''Joe:I would ask if it makes sense to add a flashing rate parameter to specify the frequency with which it should flash?''' |
@kannankvs: Do you have an opinion on the tuple vs. new "colors" approach I proposed above? |
|
@kannankvs: Understood. Then I must ask, do you think it's better to denote "off" as a "color" as it is now, or as a state (e.g., |
@jleveque OFF is a state like "Solid", "Blinking". I missed to see that OFF in the list. |
@kannankvs: I think the change to a tuple that you've requested should be dealt with in a separate PR. Would you be willing to make that change? If so, let's get this PR approved and merged first. |
@jleveque : OK, we will do it. Once if this PR is merged, we will raise PR for the tuple. |
@kannankvs: Sounds good. Pleas approve this PR if you are OK with it. |
@jleveque : Approvals done. Thank you. |
[sonic-platform-common] [sonic_sfp] Interpret sff 'int' element =0 as valid value (sonic-net/sonic-platform-common#51) add more error code to get_transceiver_change_event ((sonic-net/sonic-platform-common#50) [sonic_platform_base] support new-platform-api-based daemons ((sonic-net/sonic-platform-common#48) sync change to sonic_platform_base/sonic_sfp and create symbol link ((sonic-net/sonic-platform-common#49) Add parser support for Tx_RxLos,TxFault, PowerControl, ResetStatus in sff8436.py ((sonic-net/sonic-platform-common#45) readd type_abbrv_name in sonic_sfp/sff8436.py ((sonic-net/sonic-platform-common#44) [psu_base] get_status_led() returns current state of the status LED ((sonic-net/sonic-platform-common#39) Fix abbrv name for OSFP ((sonic-net/sonic-platform-common#36) [sff8436] support "Control Bytes" and "Options" ((sonic-net/sonic-platform-common#38) sonic_sfp: avoid possible key error in get_physical_to_logical() ((sonic-net/sonic-platform-common#37) [sonic-platform-daemons] [xcvrd] Enhance xcvrd to handle new system level event/error (sonic-net/sonic-platform-daemons#39) [xcvrd] Support both new platform API and old platform plugins (sonic-net/sonic-platform-daemons#38) [psud] Support both new platform API and old platform plugins (sonic-net/sonic-platform-daemons#37) [syseepromd] Support both new platform API and old platform plugins (sonic-net/sonic-platform-daemons#36) Add missing import statemet (sonic-net/sonic-platform-daemons#32) sonic_xcvrd: Support for DOM Threshold values for EEPROM dump (sonic-net/sonic-platform-daemons#29)
…ic-net#3333) [sonic-platform-common] [sonic_sfp] Interpret sff 'int' element =0 as valid value (sonic-net/sonic-platform-common#51) add more error code to get_transceiver_change_event ((sonic-net/sonic-platform-common#50) [sonic_platform_base] support new-platform-api-based daemons ((sonic-net/sonic-platform-common#48) sync change to sonic_platform_base/sonic_sfp and create symbol link ((sonic-net/sonic-platform-common#49) Add parser support for Tx_RxLos,TxFault, PowerControl, ResetStatus in sff8436.py ((sonic-net/sonic-platform-common#45) readd type_abbrv_name in sonic_sfp/sff8436.py ((sonic-net/sonic-platform-common#44) [psu_base] get_status_led() returns current state of the status LED ((sonic-net/sonic-platform-common#39) Fix abbrv name for OSFP ((sonic-net/sonic-platform-common#36) [sff8436] support "Control Bytes" and "Options" ((sonic-net/sonic-platform-common#38) sonic_sfp: avoid possible key error in get_physical_to_logical() ((sonic-net/sonic-platform-common#37) [sonic-platform-daemons] [xcvrd] Enhance xcvrd to handle new system level event/error (sonic-net/sonic-platform-daemons#39) [xcvrd] Support both new platform API and old platform plugins (sonic-net/sonic-platform-daemons#38) [psud] Support both new platform API and old platform plugins (sonic-net/sonic-platform-daemons#37) [syseepromd] Support both new platform API and old platform plugins (sonic-net/sonic-platform-daemons#36) Add missing import statemet (sonic-net/sonic-platform-daemons#32) sonic_xcvrd: Support for DOM Threshold values for EEPROM dump (sonic-net/sonic-platform-daemons#29)
…et#39) * make xcvrd wait when system not ready * [xcvrd] fix indents and tense error. * [xcvrd]update retry-until-ready logic in state-machine approach * [xcvrd] receiving a normal event when "SYSTEM_NOT_READY", transmit the state to "SYSTEM_READY" * [xcvrd]set timeout = 0 when enters SYSTEM_READY state. * [xcvrd] update the logic of sfp_state_update_task in a state machine approach the definition of state machine is in front of sfp_state_update_task.task_worker * [xcvrd]address review comments * [xcvrd] fix merging confilcts * [xcvrd] improve readability.