Add power on error
This error will be created when PGOOD doesn't
come up during a power on.
Change-Id: I963ec22651598bdb14405e41bcf314c7bbab7f6c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/elog-errors.hpp b/elog-errors.hpp
index 1fe8470..e10831c 100644
--- a/elog-errors.hpp
+++ b/elog-errors.hpp
@@ -21,6 +21,26 @@
{
namespace Error
{
+ struct PowerOnFailure;
+} // namespace Error
+} // namespace Fault
+} // namespace Power
+} // namespace openbmc_project
+} // namespace xyz
+} // namespace sdbusplus
+
+namespace sdbusplus
+{
+namespace xyz
+{
+namespace openbmc_project
+{
+namespace Power
+{
+namespace Fault
+{
+namespace Error
+{
struct Shutdown;
} // namespace Error
} // namespace Fault
@@ -74,6 +94,44 @@
}
+namespace xyz
+{
+namespace openbmc_project
+{
+namespace Power
+{
+namespace Fault
+{
+namespace _PowerOnFailure
+{
+
+
+} // namespace _PowerOnFailure
+
+struct PowerOnFailure
+{
+ static constexpr auto L = level::ERR;
+ using metadata_types = std::tuple<>;
+
+};
+
+} // namespace Fault
+} // namespace Power
+} // namespace openbmc_project
+} // namespace xyz
+
+
+namespace details
+{
+
+template <>
+struct map_exception_type<sdbusplus::xyz::openbmc_project::Power::Fault::Error::PowerOnFailure>
+{
+ using type = xyz::openbmc_project::Power::Fault::PowerOnFailure;
+};
+
+}
+
} // namespace logging
diff --git a/xyz/openbmc_project/Power/Fault.errors.yaml b/xyz/openbmc_project/Power/Fault.errors.yaml
index e646d02..e428494 100644
--- a/xyz/openbmc_project/Power/Fault.errors.yaml
+++ b/xyz/openbmc_project/Power/Fault.errors.yaml
@@ -1,2 +1,4 @@
- name: Shutdown
description: A power off was issued because a power fault was detected
+- name: PowerOnFailure
+ description: System power failed to turn on
diff --git a/xyz/openbmc_project/Power/Fault.metadata.yaml b/xyz/openbmc_project/Power/Fault.metadata.yaml
index 72bb884..ff416df 100644
--- a/xyz/openbmc_project/Power/Fault.metadata.yaml
+++ b/xyz/openbmc_project/Power/Fault.metadata.yaml
@@ -1,2 +1,4 @@
- name: Shutdown
level: ERR
+- name: PowerOnFailure
+ level: ERR