commit | 17b1e8a8fe1b1d8deab7718f40c57d766e235f63 | [log] [tgz] |
---|---|---|
author | Archana Kakani <archana.kakani@ibm.com> | Tue Feb 04 03:50:24 2025 -0600 |
committer | ManojKiran Eda <manojkiran.eda@gmail.com> | Mon Feb 10 05:16:53 2025 +0000 |
tree | 2608d6399c5580bb047f6408173f4a0b3de6e673 | |
parent | f935537d2433b9c431c3af5a2bcb2ea58a3e321d [diff] [blame] |
host-bmc: Implement Connector interface Adding support to host Connector dbus interface. Based on the PDRs received from remote PLDM terminus, PLDM hosts the dbus interface based on the entity type. The Connector 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/Connector.interface.yaml Change-Id: Iefad8287e4cb2221b14f28219473285b89098975 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 f4581d8..54dd076 100644 --- a/host-bmc/dbus/custom_dbus.cpp +++ b/host-bmc/dbus/custom_dbus.cpp
@@ -147,6 +147,16 @@ } } +void CustomDBus::implementConnecterInterface(const std::string& path) +{ + if (!connector.contains(path)) + { + connector.emplace( + path, std::make_unique<Connector>( + pldm::utils::DBusHandler::getBus(), path.c_str())); + } +} + void CustomDBus::implementChassisInterface(const std::string& path) { if (!chassis.contains(path))