pfr-manager: move cpld_active version to settings service
Add Support to move the cpld_version object to settings service and
update the version in pfr-manager.
This is done to have the cpld_active version displayed in redfish if
pfr-manager stopped.
Tested:
Command: busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_
project/software/cpld_active xyz.openbmc_project.Software.
Version "Version"
Response:
s "0.7-1.0-8675b80f7c90e9163f19b6af2351e3c231f4d154b5f03
1442b6c3d9777671694"
Command: GET: https://BMC_IP>/redfish/v1/UpdateService/FirmwareInventory
/cpld_active
Response:
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/
cpld_active",
"@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
"Description": "Other image",
"Id": "cpld_active",
"Name": "Software Inventory",
"Status": {
"Health": "OK",
"HealthRollup": "OK",
"State": "Enabled"
},
"Updateable": false,
"Version": "0.7-1.0-8675b80f7c90e9163f19b6af2351e3c231f4d154b5f03
1442b6c3d9777671694"
}
Signed-off-by: Chalapathi Venkataramashetty <chalapathix.venkataramashetty@intel.com>
Change-Id: I3772db318f25afff39c44692bea7c510b0070647
3 files changed