Support `terminus_name` option in `dbus_to_terminus_effecter`
Support `terminus_name` configuration option in
`dbus_to_terminus_effecter` to allow setting the destination terminus
beside `mctp_eid`. This is helpful when the mctp endpoint Eid is not
static.
Change-Id: I8b1ed15741807086254146017c99c13ae667dac1
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
diff --git a/platform-mc/terminus_manager.hpp b/platform-mc/terminus_manager.hpp
index 0eb2869..f8611f7 100644
--- a/platform-mc/terminus_manager.hpp
+++ b/platform-mc/terminus_manager.hpp
@@ -170,6 +170,16 @@
*/
std::string constructEndpointObjPath(const MctpInfo& mctpInfo);
+ /** @brief Member functions to get the MCTP eid of active MCTP medium
+ * interface of one terminus by terminus name
+ *
+ * @param[in] terminusName - terminus name
+ *
+ * @return option mctp_eid_t - the mctp eid or std::nullopt
+ */
+ std::optional<mctp_eid_t> getActiveEidByName(
+ const std::string& terminusName);
+
private:
/** @brief Find the terminus object pointer in termini list.
*