Skip to content

Fixes #39301 - Add LocationIndicatorActive support for identify LED with IndicatorLED fallback#940

Merged
stejskalleos merged 1 commit into
theforeman:developfrom
FujitsuResearch:feature/location-indicator-active
Jul 13, 2026
Merged

Fixes #39301 - Add LocationIndicatorActive support for identify LED with IndicatorLED fallback#940
stejskalleos merged 1 commit into
theforeman:developfrom
FujitsuResearch:feature/location-indicator-active

Conversation

@spesnova717

Copy link
Copy Markdown
Contributor

Summary

This PR updates Redfish identify LED handling to prefer LocationIndicatorActive when present, while preserving backward compatibility by falling back to IndicatorLED when unavailable.

Depends on

Changes

  • identifystatus
    • Uses LocationIndicatorActive first (true => on, false => off).
    • Falls back to IndicatorLED when LocationIndicatorActive is absent.
  • identifyon / identifyoff
    • Delegate to the new private method patch_identify.
    • patch_identify selects either a LocationIndicatorActive or IndicatorLED payload based on availability, then applies it via patch_if_match.

Compatibility

Backward compatible: systems without LocationIndicatorActive continue to work via IndicatorLED.

@spesnova717 spesnova717 force-pushed the feature/location-indicator-active branch from f1d58ea to 8eab381 Compare May 20, 2026 04:39
@stejskalleos stejskalleos self-assigned this Jun 24, 2026
…fallback

Prefer LocationIndicatorActive for identify status and identify on/off
operations when available, and fall back to IndicatorLED for older or
partial Redfish implementations.

This keeps compatibility across vendors while aligning identify behavior
with newer Redfish systems. Add tests for both LocationIndicatorActive
and fallback paths.

(this commit is intended to be reviewed on top of
theforeman#939)
@spesnova717 spesnova717 force-pushed the feature/location-indicator-active branch from e47b2ee to 8f62b89 Compare July 13, 2026 01:26

@stejskalleos stejskalleos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🍏 LGTM

I have not tested it personally, but the code change looks good, the scope is clear and to the point, the tests are present, and CI is green, so let's get this in!

@stejskalleos stejskalleos merged commit b1d8bdb into theforeman:develop Jul 13, 2026
10 checks passed
@stejskalleos

Copy link
Copy Markdown
Contributor

thanks @spesnova717

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.

2 participants