summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--redfish-core/lib/chassis.hpp6
-rw-r--r--redfish-core/lib/systems.hpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index cd26849c65..2ebdaefff2 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -416,6 +416,12 @@ class Chassis : public Node
{
return; // delete this when we support more patch properties
}
+ if (indicatorLed)
+ {
+ res.addHeader(boost::beast::http::field::warning,
+ "299 - \"IndicatorLED is deprecated. Use "
+ "LocationIndicatorActive instead.\"");
+ }
const std::array<const char*, 2> interfaces = {
"xyz.openbmc_project.Inventory.Item.Board",
diff --git a/redfish-core/lib/systems.hpp b/redfish-core/lib/systems.hpp
index 2817d924da..9325a93a22 100644
--- a/redfish-core/lib/systems.hpp
+++ b/redfish-core/lib/systems.hpp
@@ -2233,6 +2233,9 @@ class Systems : public Node
if (indicatorLed)
{
setIndicatorLedState(asyncResp, *indicatorLed);
+ res.addHeader(boost::beast::http::field::warning,
+ "299 - \"IndicatorLED is deprecated. Use "
+ "LocationIndicatorActive instead.\"");
}
if (powerRestorePolicy)