summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--callback-manager/include/callback_manager.hpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/callback-manager/include/callback_manager.hpp b/callback-manager/include/callback_manager.hpp
index 4ecdd60..490e596 100644
--- a/callback-manager/include/callback_manager.hpp
+++ b/callback-manager/include/callback_manager.hpp
@@ -12,7 +12,8 @@ constexpr const char* sensorPath = "/xyz/openbmc_project/sensors";
constexpr const char* globalInventoryIface =
"xyz.openbmc_project.Inventory.Item.Global";
-constexpr const char* associationIface = "org.openbmc.Associations";
+constexpr const char* associationIface =
+ "xyz.openbmc_project.Association.Definitions";
namespace threshold
{
@@ -29,8 +30,8 @@ struct AssociationManager
sensorAssociation(
objectServer.add_interface(sensorPath, associationIface))
{
- association->register_property("associations", std::set<Association>());
- sensorAssociation->register_property("associations",
+ association->register_property("Associations", std::set<Association>());
+ sensorAssociation->register_property("Associations",
std::set<Association>());
association->initialize();
sensorAssociation->initialize();
@@ -61,7 +62,7 @@ struct AssociationManager
{
result.emplace(threshold::warning, "", path);
}
- association->set_property("associations", result);
+ association->set_property("Associations", result);
}
void setSensorAssociations(const std::vector<std::string>& critical,
@@ -84,10 +85,10 @@ struct AssociationManager
}
result.emplace(threshold::warning, "", path);
}
- sensorAssociation->set_property("associations", result);
+ sensorAssociation->set_property("Associations", result);
}
sdbusplus::asio::object_server& objectServer;
std::shared_ptr<sdbusplus::asio::dbus_interface> association;
std::shared_ptr<sdbusplus::asio::dbus_interface> sensorAssociation;
-}; \ No newline at end of file
+};