Skip to contentSkip to conversation

Thoughts on representing the LED groups in Redfish ?

DISCUSSION Vishwanatha Subbanna 2 participants 3 messages Feb 14, 2020 – Feb 20, 2020

lore
Share & tools
lore
#0 lore raw

Hello,Writing this to get your thoughts on representing LED logical groups in Redfish.OpenBmc LED subsystem has 2 layers1/. Logical LED group manager2/. Physical LED controller that sets ONE particular LED to On/Off/BlinkLogical LED group manager:This is where we define a group with set of physical LEDs and their respective actions for one use case.For example: https://github.com/openbmc/phosphor-led-manager/blob/master/led.yamlWhen the user wants to turn on the Identify indicators, they don’t target the physical LEDs individually. Instead, they just set the “Asserted” property :  “xyz/openbmc_project/led/groups/enclosure_identify/attr/Asserted"LED manager will then request physical led controllers of those LEDs to take the right actionCurrent bmcweb actually uses the groups than targeting the physical LEDs. So it’s good. https://github.com/openbmc/bmcweb/blob/1c8fba97b1feb4164e9b54cd66aad530bbfc1826/redfish-core/lib/led.hpp#L33However, I am not sure if there are ways to express the LED logical groups in the redfish schema.Any ideas ?Thank you,!! Vishwa !!

#1 lore raw

Hello,

Wonder if the community has any thoughts ?

Thanks,
!! Vishwa !!

On 14-Feb-2020, at 4:51 PM, Vishwanatha Subbanna <[email protected]> wrote:

Hello,

Writing this to get your thoughts on representing LED logical groups in Redfish.

OpenBmc LED subsystem has 2 layers

1/. Logical LED group manager
2/. Physical LED controller that sets ONE particular LED to On/Off/Blink

Logical LED group manager:

This is where we define a group with set of physical LEDs and their respective actions for one use case.

For example: https://github.com/openbmc/phosphor-led-manager/blob/master/led.yaml

When the user wants to turn on the Identify indicators, they don’t target the physical LEDs individually. Instead, they just set the “Asserted” property :  “xyz/openbmc_project/led/groups/enclosure_identify/attr/Asserted"

LED manager will then request physical led controllers of those LEDs to take the right action

Current bmcweb actually uses the groups than targeting the physical LEDs. So it’s good. https://github.com/openbmc/bmcweb/blob/1c8fba97b1feb4164e9b54cd66aad530bbfc1826/redfish-core/lib/led.hpp#L33

However, I am not sure if there are ways to express the LED logical groups in the redfish schema.

Any ideas ?

Thank you,
!! Vishwa !!

#2 lore raw
Quoted 41 lines · Vishwanatha Subbanna

Hello,

Wonder if the community has any thoughts ?

Thanks,
!! Vishwa !!

On 14-Feb-2020, at 4:51 PM, Vishwanatha Subbanna <[email protected]> wrote:

Hello,

Writing this to get your thoughts on representing LED logical groups in Redfish.

OpenBmc LED subsystem has 2 layers

1/. Logical LED group manager
2/. Physical LED controller that sets ONE particular LED to On/Off/Blink

Logical LED group manager:

This is where we define a group with set of physical LEDs and their respective actions for one use case.

For example: https://github.com/openbmc/phosphor-led-manager/blob/master/
led.yaml

When the user wants to turn on the Identify indicators, they don’t target the physical LEDs individually. Instead, they just set the “Asserted” property : “xyz/openbmc_project/led/groups/enclosure_identify/attr/ Asserted"

LED manager will then request physical led controllers of those LEDs to take the right action

Current bmcweb actually uses the groups than targeting the physical LEDs. So it’s good. https://github.com/openbmc/bmcweb/blob/
1c8fba97b1feb4164e9b54cd66aad530bbfc1826/redfish-core/lib/led.hpp#L33

Quoted 7 lines

However, I am not sure if there are ways to express the LED logical groups in the redfish schema.

Any ideas ?

Thank you,
!! Vishwa !!

It seems like if BMCWeb is using the logical groups already, this is good because this is likely what the administrator is most interested in anyhow. From what you've written here, I'm not sure what the new feature is you'd be proposing. How might logical vs physical LEDs be presented in a management interface like Redfish and what advantage does it provide to a user (over what we're doing today)?

Signature · 1 line
Patrick Williams