Skip to content

Remove redundancy in ledd #12

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

Merged
merged 1 commit into from
Feb 26, 2018
Merged

Remove redundancy in ledd #12

merged 1 commit into from
Feb 26, 2018

Conversation

zzhiyuan
Copy link
Contributor

@zzhiyuan zzhiyuan commented Feb 23, 2018

sonic-ledd/scripts/ledd: Remove redundacies

Previous implementation of front-panel LED controls has a lot of
redundancies that are unnecessary for what it currently does. It would
always set all front-panel LEDs to off, populate a dictionary, then
iterate through the dictionary to turn LEDs to correct colors. LEDs can
simply be set through one iteration.

In normal SONiC it was already noticeable (LEDs flash off for a brief
moment every second) but for SONiC+cEOS it is much worse since
turning on or off LEDs takes a much longer amount of time.

This problem was found by internal product tests testing SONiC+cEOS.

Signed-off-by: Zhi Yuan Zhao [email protected]

Previous implementation of front-panel LED controls has a lot of
redundancies that are unnecessary for what it currently does. It would
always set all front-panel LEDs to off, populate a dictionary, then
iterate through the dictionary to turn LEDs to correct colors. LEDs can
simply be set through one iteration.
@jleveque jleveque merged commit 31c007e into sonic-net:master Feb 26, 2018
praveen-li pushed a commit to praveen-li/sonic-platform-daemons that referenced this pull request May 3, 2021
* msft_github/master:
  Remove redundancy in ledd (sonic-net#12)
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
vvolam pushed a commit to vvolam/sonic-platform-daemons that referenced this pull request Jun 16, 2025
…noff_202412

[xcvrd] Add wait based on MaxDurationDPTxTurnOff after disabling Tx sonic-net#602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants