Handle entity association records from host
- Get the PDRs from host, traverse the entity association structure
and construct the D-Bus object path according to the entity type ID
and container type ID.
- eg:
/xyz/openbmc_project/inventory/system1/chassis1/io_board1/powersupply1
/xyz/openbmc_project/inventory/system1/chassis1/io_board1/powersupply2
/xyz/openbmc_project/inventory/system1/chassis2/io_board2/powersupply1
/xyz/openbmc_project/inventory/system1/chassis2/io_board2/powersupply2
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I1c606ea943624f2601be4f5f6b5c30d1bf71cd11
diff --git a/host-bmc/host_pdr_handler.hpp b/host-bmc/host_pdr_handler.hpp
index facfeb1..5dc5e9e 100644
--- a/host-bmc/host_pdr_handler.hpp
+++ b/host-bmc/host_pdr_handler.hpp
@@ -14,6 +14,7 @@
#include <sdeventplus/source/event.hpp>
#include <deque>
+#include <filesystem>
#include <map>
#include <memory>
#include <vector>
@@ -267,6 +268,15 @@
/** @brief request message instance id */
uint8_t insId;
+
+ /** @brief maps an object path to pldm_entity from the BMC's entity
+ * association tree
+ */
+ utils::ObjectPathMaps objPathMap;
+
+ /** @brief maps an entity name to map, maps to entity name to pldm_entity
+ */
+ utils::EntityAssociations entityAssociations;
};
} // namespace pldm