diff options
author | Matt Spinler <spinler@us.ibm.com> | 2019-12-11 14:20:36 -0600 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2020-01-15 21:24:34 +0000 |
commit | cce1411a6405f663654b34fcccf40810871013b1 (patch) | |
tree | a5ee346a1ff783d4ca44d617f8fa0e8fb4a10046 | |
parent | 1d4c74a0a9c045a4327af60e1edf83398cdbd2e3 (diff) | |
download | phosphor-logging-cce1411a6405f663654b34fcccf40810871013b1.tar.gz phosphor-logging-cce1411a6405f663654b34fcccf40810871013b1.zip |
PEL: API for getting if system is HMC managed
Add an API to the DataInterface class for determining if
the system is HMC (hardware management console, which usually
reference to a specific set of software and hardware that
connects to IBM servers) managed.
As of now there is no way to determine this, so just return
the default of false.
This status impacts which PELs are sent to the host.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I803bc71c271dec6d68821dd36089e7a46461aac6
-rw-r--r-- | extensions/openpower-pels/data_interface.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/openpower-pels/data_interface.hpp b/extensions/openpower-pels/data_interface.hpp index 35e220c..88c590a 100644 --- a/extensions/openpower-pels/data_interface.hpp +++ b/extensions/openpower-pels/data_interface.hpp @@ -54,6 +54,16 @@ class DataInterfaceBase } /** + * @brief Says if the system is managed by a hardware + * management console. + * @return bool - If the system is HMC managed + */ + virtual bool isHMCManaged() const + { + return _hmcManaged; + } + + /** * @brief Says if the host is up and running * * @return bool - If the host is running @@ -163,6 +173,12 @@ class DataInterfaceBase std::string _machineSerialNumber; /** + * @brief The hardware management console status. Always kept + * up to date. + */ + bool _hmcManaged = false; + + /** * @brief The host up status. Always kept up to date. */ bool _hostUp = false; |