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.cpp b/extensions/openpower-pels/pel.cpp
index 4e16fc5..d0a187c 100644
--- a/extensions/openpower-pels/pel.cpp
+++ b/extensions/openpower-pels/pel.cpp
@@ -585,6 +585,30 @@
     }
 }
 
+bool PEL::getDeconfigFlag() const
+{
+    auto creator = static_cast<CreatorID>(_ph->creatorID());
+
+    if ((creator == CreatorID::openBMC) || (creator == CreatorID::hostboot))
+    {
+        auto src = primarySRC();
+        return (*src)->getErrorStatusFlag(SRC::ErrorStatusFlags::deconfigured);
+    }
+    return false;
+}
+
+bool PEL::getGuardFlag() const
+{
+    auto creator = static_cast<CreatorID>(_ph->creatorID());
+
+    if ((creator == CreatorID::openBMC) || (creator == CreatorID::hostboot))
+    {
+        auto src = primarySRC();
+        return (*src)->getErrorStatusFlag(SRC::ErrorStatusFlags::guarded);
+    }
+    return false;
+}
+
 void PEL::updateTerminateBitInSRCSection()
 {
     //  Check for pel severity of type - 0x51 = critical error, system