pnor: Add updatable association to active PNOR FW
Add 'updateable' association to the active PNOR
firmware version object. This 'updateable' association
can be used to mark all the firmware components
which can be programmable from pnor interfaces like
Redfish.
Signed-off-by: Miguel Gomez <mgomez@mx1.ibm.com>
Change-Id: I33f7ac70c8bfa446aeb045c65c741e2d72ce108a
diff --git a/item_updater.cpp b/item_updater.cpp
index 4fbd717..6fe2702 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -127,6 +127,13 @@
associations(assocs);
}
+void ItemUpdater::createUpdateableAssociation(const std::string& path)
+{
+ assocs.emplace_back(std::make_tuple(UPDATEABLE_FWD_ASSOCIATION,
+ UPDATEABLE_REV_ASSOCIATION, path));
+ associations(assocs);
+}
+
void ItemUpdater::updateFunctionalAssociation(const std::string& versionId)
{
std::string path = std::string{SOFTWARE_OBJPATH} + '/' + versionId;