Systems: Restore old-style LocationIndicatorActive
The commit 2eaa927 [1] altered the D-Bus associations used for setting
and getting the LED state for the Systems resource. Machines which use
entity-manager do not have the new association yet.
This commit is adding back the use of the old D-Bus method under a
compile option. This will be enabled by default until October 15, 2025
and completely removed by June 2026.
[1] https://gerrit.openbmc.org/c/openbmc/bmcweb/+/82078
Tested:
- Built with option enabled and confirmed logging showed old method
being used.
- Built with option disabled and confirmed logging showed new method
being used.
Change-Id: I271fc464ef512b742a8c85419668aa09d38e525d
Signed-off-by: Janet Adkins <janeta@us.ibm.com>
diff --git a/meson.options b/meson.options
index 6a28751..5ec28cd 100644
--- a/meson.options
+++ b/meson.options
@@ -311,6 +311,19 @@
option will be removed by March 2026.''',
)
+# BMCWEB_REDFISH_USE_HARDCODED_SYSTEM_LOCATION_INDICATOR
+option(
+ 'redfish-use-hardcoded-system-location-indicator',
+ type: 'feature',
+ value: 'enabled',
+ description: '''Enable/disable the use of hard-coded LED group
+ enclosure_identify_blink and enclosure_identify for getting
+ and setting the LocationIndicatorActive for the Systems
+ response. The default condition will be enabled until
+ October 15, 2025. The code to enable this option will be
+ removed by June 2026.''',
+)
+
# BMCWEB_REDFISH_ALLOW_DEPRECATED_POWER_THERMAL
option(
'redfish-allow-deprecated-power-thermal',