BIOS: enable D-Bus backend for BIOS attributes
This commit allows pldm to listen for the relevant
D-Bus property change and update the BIOS attribute
Change-Id: Ic31e9597313832e6f0e784f9d612feaddd008902
Signed-off-by: Sampa Misra <sampmisr@in.ibm.com>
Signed-off-by: George Liu <liuxiwei@inspur.com>
diff --git a/libpldmresponder/bios_config.cpp b/libpldmresponder/bios_config.cpp
index b61b3b6..b3d827f 100644
--- a/libpldmresponder/bios_config.cpp
+++ b/libpldmresponder/bios_config.cpp
@@ -837,6 +837,12 @@
{
storeTable(tableDir / attrValueTableFile, *destTable);
}
+
+ rc = setAttrValue(newValue.data(), newValue.size());
+ if (rc != PLDM_SUCCESS)
+ {
+ std::cerr << "could not setAttrValue on base bios table and dbus \n";
+ }
}
uint16_t BIOSConfig::findAttrHandle(const std::string& attrName)