PEL: New D-Bus properties on PEL entry iface
Fill in the 4 newly added properties on the PEL entry D-Bus interface:
- Platform log ID (PLID)
- Deconfig flag from the SRC section
- Guard flag from the SRC section
- Creation timestamp
These were also added to the PELAttributes map in the Repository class
so that each PEL wouldn't have to be reconstructed from a file again
when creating the D-Bus objects.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I7878645f56c634e6111fcecc22ab27673d0c0f5d
diff --git a/extensions/openpower-pels/pel.hpp b/extensions/openpower-pels/pel.hpp
index d6f76e1..f6ff165 100644
--- a/extensions/openpower-pels/pel.hpp
+++ b/extensions/openpower-pels/pel.hpp
@@ -304,6 +304,30 @@
void updateSysInfoInExtendedUserDataSection(
const DataInterfaceBase& dataIface);
+ /**
+ * @brief Return the deconfig flag from hex data word 5 of BMC and
+ * hostboot PELs.
+ *
+ * This only applies to BMC and hostboot PELs because only those
+ * SRC formats have this flag defined.
+ *
+ * @return bool - If the 'one or more resources are deconfigured'
+ * flag is set.
+ */
+ bool getDeconfigFlag() const;
+
+ /**
+ * @brief Return the guard flag from hex data word 5 of BMC and
+ * hostboot PELs.
+ *
+ * This only applies to BMC and hostboot PELs because only those
+ * SRC formats have this flag defined.
+ *
+ * @return bool - If the 'one or more resources are guarded'
+ * flag is set.
+ */
+ bool getGuardFlag() const;
+
private:
/**
* @brief Builds the section objects from a PEL data buffer