PEL: Guard against hostboot sending down duplicate PEL Ids

This commit is to guard against hostboot sending down PEL Id
that we already have in our repository. This caused PEL to
get orphaned in the filesystem without a corresponding valid
openbmc event log Id.
The action is to move such PELs to archive folder.

Signed-off-by: Sumit Kumar <sumit_kumar@in.ibm.com>
Change-Id: I46bb865b4b87ec0b59f362e3f79a1b5a6710a45c
diff --git a/extensions/openpower-pels/repository.hpp b/extensions/openpower-pels/repository.hpp
index a57b901..b8ef126 100644
--- a/extensions/openpower-pels/repository.hpp
+++ b/extensions/openpower-pels/repository.hpp
@@ -445,6 +445,13 @@
         return std::nullopt;
     }
 
+    /**
+     * @brief Save the PEL to archive folder
+     *
+     * @param[in] pel - The PEL data
+     */
+    void archivePEL(const PEL& pel);
+
   private:
     using PELUpdateFunc = std::function<void(PEL&)>;