summaryrefslogtreecommitdiff
path: root/intel-pfr-manager
diff options
context:
space:
mode:
authorAppaRao Puli <apparao.puli@linux.intel.com>2019-07-19 20:04:04 +0300
committerPuli, Apparao <apparao.puli@intel.com>2019-07-22 09:41:30 +0300
commitccf291729d3b9c72986a536c7b5a0b08545296d5 (patch)
tree25bca5c048dd468f6bd4030f18f1d4d7b86f94c8 /intel-pfr-manager
parent1cfdbe614f53ee0dc01a2a5e17ce1f873f1933bd (diff)
downloadprovingground-ccf291729d3b9c72986a536c7b5a0b08545296d5.tar.xz
Adding Activation for associated Version interface
Activation interface should be associated with Version interface to represents the activation state. Its missed in initial commit and causing redfish query failing for these Software Objects. Tested: Validated the redfish response by using below request URI URI: /redfish/v1/UpdateService/FirmwareInventory/cpld METHOD: GET Change-Id: Ifb3fa779ddbbac2cfee12ec7d3cb0093fd87089f Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
Diffstat (limited to 'intel-pfr-manager')
-rw-r--r--intel-pfr-manager/service/src/pfr_mgr.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/intel-pfr-manager/service/src/pfr_mgr.cpp b/intel-pfr-manager/service/src/pfr_mgr.cpp
index 91a9504..3fbbe36 100644
--- a/intel-pfr-manager/service/src/pfr_mgr.cpp
+++ b/intel-pfr-manager/service/src/pfr_mgr.cpp
@@ -75,6 +75,21 @@ PfrVersion::PfrVersion(sdbusplus::asio::object_server &srv_,
iface->register_property("Version", version);
iface->initialize();
+
+ /* Activation interface represents activation state for an associated
+ * xyz.openbmc_project.Software.Version. since these versions are already
+ * active, so we should set "activation" to Active and
+ * "RequestedActivation" to None. */
+ std::string activation =
+ "xyz.openbmc_project.Software.Activation.Activations.Active";
+ std::string reqActNone =
+ "xyz.openbmc_project.Software.Activation.RequestedActivations.None";
+ auto activationIface = server.add_interface(
+ objPath, "xyz.openbmc_project.Software.Activation");
+ activationIface->register_property("Activation", activation);
+ activationIface->register_property("RequestedActivation", reqActNone);
+
+ activationIface->initialize();
}
bool PfrConfig::getPFRProvisionedState()