update DBus interface to mctp 2.1
Tested:
https://paste.googleplex.com/4882595925721088
Google-Bug-Id: 427282611
Change-Id: I010a357a06fedefef311911bed89df868c134749
Signed-off-by: Jinliang Wang <jinliangw@google.com>
diff --git a/requester/mctp_endpoint_discovery.cpp b/requester/mctp_endpoint_discovery.cpp
index faac4c4..7e861a0 100644
--- a/requester/mctp_endpoint_discovery.cpp
+++ b/requester/mctp_endpoint_discovery.cpp
@@ -19,12 +19,12 @@
mctpEndpointAddedSignal(
bus,
sdbusplus::bus::match::rules::interfacesAdded(
- "/xyz/openbmc_project/mctp"),
+ "/au/com/codeconstruct/mctp1"),
std::bind_front(&MctpDiscovery::discoverEndpoints, this)),
mctpEndpointRemovedSignal(
bus,
sdbusplus::bus::match::rules::interfacesRemoved(
- "/xyz/openbmc_project/mctp"),
+ "/au/com/codeconstruct/mctp1"),
std::bind_front(&MctpDiscovery::removeEndpoints, this))
{
addRemoveEndpoints();
@@ -89,7 +89,7 @@
try
{
auto method = bus.new_method_call(
- "xyz.openbmc_project.MCTP", "/xyz/openbmc_project/mctp",
+ "au.com.codeconstruct.MCTP1", "/au/com/codeconstruct/mctp1",
"org.freedesktop.DBus.ObjectManager", "GetManagedObjects");
auto reply = bus.call(method, dbusTimeout);
reply.read(objects);
diff --git a/requester/terminus_handler.cpp b/requester/terminus_handler.cpp
index 48ed8f0..f5f341f 100644
--- a/requester/terminus_handler.cpp
+++ b/requester/terminus_handler.cpp
@@ -1948,14 +1948,15 @@
void TerminusHandler::removeMCTPEndpoint()
{
- std::string eidObject = "/xyz/openbmc_project/mctp/1/" +
- std::to_string(eid);
+ std::string eidObject =
+ "/au/com/codeconstruct/mctp1/networks/1/endpoints/" +
+ std::to_string(eid);
std::cerr << "Removing " << eidObject << std::endl;
try
{
- auto method =
- bus.new_method_call("xyz.openbmc_project.MCTP", eidObject.c_str(),
- "au.com.CodeConstruct.MCTP.Endpoint", "Remove");
+ auto method = bus.new_method_call(
+ "au.com.codeconstruct.MCTP1", eidObject.c_str(),
+ "au.com.codeconstruct.MCTP.Endpoint1", "Remove");
// There is no input and no outpt for Remove method.
// The MCTP endpoint may already has been removed so we can ignore
// error.