Add BMC state transition of reboot
This commit should support the transition to
reboot a BMC using systemd. Later commits will
handle the remaining transition monitoring for
updating the current state.
Change-Id: I1fb14b8775de4d2cbc522aa3405c8917291bf3cc
Signed-off-by: Josh D. King <jdking@us.ibm.com>
diff --git a/bmc_state_manager.hpp b/bmc_state_manager.hpp
index be88ba8..1ddef53 100644
--- a/bmc_state_manager.hpp
+++ b/bmc_state_manager.hpp
@@ -21,6 +21,10 @@
public:
/** @brief Constructs BMC State Manager
*
+ * @note This constructor passes 'true' to the base class in order to
+ * defer dbus object registration until we can run
+ * subscribeToSystemdSignals() and set our properties
+ *
* @param[in] bus - The Dbus bus object
* @param[in] busName - The Dbus name to own
* @param[in] objPath - The Dbus object path
@@ -38,8 +42,6 @@
/** @brief Set value of BMCTransition **/
Transition requestedBMCTransition(Transition value) override;
- /** @breif Set value of CurrentBMCState **/
- BMCState currentBMCState(BMCState value) override;
private:
/**
@@ -47,10 +49,15 @@
**/
void subscribeToSystemdSignals();
+ /** @brief Execute the transition request
+ *
+ * @param[in] tranReq - Transition requested
+ */
+ void executeTransition(Transition tranReq);
+
/** @brief Persistent sdbusplus DBus bus connection. **/
sdbusplus::bus::bus& bus;
-
};
} // namespace manager