LampTest: Notify PHYP to start the lamp test
- As part of the lamp test, when the lamp test is started / stoped,
the BMC needs to notify PHYP, so that PHYP can do lamp test on
externally connected drawers.
For example: MEX IO drawers.
- Since the command to notify PHYP needs to be completed in the PLDM
daemon, ledManager only needs to update the corresponding D-Bus
interface property value.
Tested:
- Notify PHYP by the host-lamp-test path
busctl set-property xyz.openbmc_project.LED.GroupManager
/xyz/openbmc_project/led/groups/host_lamp_test
xyz.openbmc_project.Led.Group Asserted b true
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I0a0aad91c512183e457903bddb392ee56118f21c
diff --git a/lamptest.hpp b/lamptest.hpp
index ef0d7b0..1797dce 100644
--- a/lamptest.hpp
+++ b/lamptest.hpp
@@ -110,6 +110,12 @@
* @return enumeration equivalent of the passed in string
*/
Layout::Action getActionFromString(const std::string& str);
+
+ /** @brief Notify PHYP to start / stop the lamp test
+ *
+ * @param[in] value - the Asserted property value
+ */
+ void doHostLampTest(bool value);
};
} // namespace led