commit | d432b48b6b5c908248d9bc6cce316514a05f3ed0 | [log] [tgz] |
---|---|---|
author | Archana Kakani <archana.kakani@ibm.com> | Tue Feb 04 22:52:28 2025 -0600 |
committer | ManojKiran Eda <manojkiran.eda@gmail.com> | Mon Feb 10 05:16:53 2025 +0000 |
tree | 2873c8b32f00250d5a592ec77105cd51ff72e00c | |
parent | 2832f2cdd6b04c0359cb5ba712e3b88be7ce1c26 [diff] [blame] |
host-bmc: Implement Board interface Adding support to host Board dbus interface. Based on the PDRs received from remote PLDM terminus, PLDM hosts the dbus interface based on the entity type. The Board interface is defined at [1]. Tested: Functional test passed [1]: https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Inventory/Item/Board.interface.yaml Change-Id: I672abd2972eb18a4b1a81155811a544927884627 Signed-off-by: Archana Kakani <archana.kakani@ibm.com>
diff --git a/host-bmc/dbus/custom_dbus.cpp b/host-bmc/dbus/custom_dbus.cpp index 42acc59..1108b4a 100644 --- a/host-bmc/dbus/custom_dbus.cpp +++ b/host-bmc/dbus/custom_dbus.cpp
@@ -137,6 +137,16 @@ } } +void CustomDBus::implementBoard(const std::string& path) +{ + if (!board.contains(path)) + { + board.emplace(path, + std::make_unique<Board>( + pldm::utils::DBusHandler::getBus(), path.c_str())); + } +} + void CustomDBus::implementPowerSupplyInterface(const std::string& path) { if (!powersupply.contains(path))