summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram Bodireddy <vikram.bodireddy@linux.intel.com>2019-12-05 12:35:49 +0300
committerBodireddy, Vikram <vikram.bodireddy@intel.com>2019-12-06 05:17:21 +0300
commiteddf621897090ba346b1aaa81a4b8be12076ab60 (patch)
treec148fd70cb106f66f04a9b859d493e24c35077d8
parent9b55d31625a882879d584e05ad28d727d9aa2d2f (diff)
downloadprovingground-eddf621897090ba346b1aaa81a4b8be12076ab60.tar.xz
Adding RequestedApplyTime property to settings
Added "RequestedApplyTime" to settings service which will be used in firmware update. This will give option for user to set the firmware image activation like activate image 'Immediate' or Activate image on 'OnReset' etc. Tested: Changed the setting using Redfish, rebooted BMC and validated the preserved 'RequestedApplyTime' setting. Change-Id: Ib08bb82fcc651f5489d69928ddaa7e1f05ebfdcf Signed-off-by: Vikram Bodireddy <vikram.bodireddy@linux.intel.com>
-rw-r--r--settings/include/defaults.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/settings/include/defaults.hpp b/settings/include/defaults.hpp
index 7576e42..134e9a0 100644
--- a/settings/include/defaults.hpp
+++ b/settings/include/defaults.hpp
@@ -305,6 +305,14 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer,
setting->addProperty("Enabled", true);
+ setting = &settings.emplace_back(objectServer,
+ "/xyz/openbmc_project/software/apply_time",
+ "xyz.openbmc_project.Software.ApplyTime");
+
+ setting->addProperty(
+ "RequestedApplyTime",
+ "xyz.openbmc_project.Software.ApplyTime.RequestedApplyTimes.Immediate");
+
for (SettingsInterface &s : settings)
{
s.initialize();