Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HW-Isolation: Fix Additional Data Uri
The guard records could be associated with hidden or visible PEL. The additional URI for visible pel would be /redfish/v1/Systems/system/LogServices/EventLog/Entries/<id>/attachment and for the hidden ones it has be /redfish/v1/Systems/system/LogServices/CELog/Entries/<id>/attachment So before adding the AdditionalDataURI, check for the hidden property of the PEL and add the URI accordingly. Tested and found it works as expected ``` { "@odata.id": "/redfish/v1/Systems/system/LogServices/HardwareIsolation/Entries", "@odata.type": "#LogEntryCollection.LogEntryCollection", "Description": "Collection of System Hardware Isolation Entries", "Members": [ { "@odata.id": "/redfish/v1/Systems/system/LogServices/HardwareIsolation/Entries/1", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/CELog/Entries/824/attachment", "Created": "2025-01-23T12:57:02+00:00", "EntryType": "Event", "Id": "1", "Links": { "OriginOfCondition": { "@odata.id": "/redfish/v1/Systems/system/Processors/dcm0-cpu0/SubProcessors/core0" } }, "Message": "Spare Guard Record core0", "MessageArgs": [ "Spare", "core0" ], "MessageId": "OpenBMC.0.6.GuardRecord", "Name": "Hardware Isolation Entry", "Severity": "OK" }, { "@odata.id": "/redfish/v1/Systems/system/LogServices/HardwareIsolation/Entries/3", "@odata.type": "#LogEntry.v1_9_0.LogEntry", "AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/830/attachment", "Created": "2025-01-23T13:08:31+00:00", "EntryType": "Event", "Id": "3", "Links": { "OriginOfCondition": { "@odata.id": "/redfish/v1/Systems/system/Processors/dcm0-cpu1/SubProcessors/core0" } }, "Message": "Spare Guard Record core0", "MessageArgs": [ "Spare", "core0" ], "MessageId": "OpenBMC.0.6.GuardRecord", "Name": "Hardware Isolation Entry", "Severity": "OK" }, } ```
- Loading branch information