summaryrefslogtreecommitdiff
path: root/Redfish.md
diff options
context:
space:
mode:
authorLakshmi Yadlapati <lakshmiy@us.ibm.com>2023-04-21 00:53:59 +0300
committerLakshmi Yadlapati <lakshmiy@us.ibm.com>2023-06-30 23:01:05 +0300
commita5409991398b6b220564dd083e37225b1baf0509 (patch)
tree71fb2f3a564476b7b1e2f385a9d39d9099b33e7d /Redfish.md
parentcf3b484e14fe9754c1812d9871d77b5b1ac9f620 (diff)
downloadbmcweb-a5409991398b6b220564dd083e37225b1baf0509.tar.xz
Add PCIe Slot information to PCIeDevice schema
To align with Redfish's transition from using the PCIeSlot schema to including the Slot within the PCIeDevice schema, this commit adds PCIe Slot information to the PCIeDevice schema. The corresponding PCIe Slot is retrieved using the 'contained_by' association, which establishes a link from the PCIeDevice object to the PCIeSlot object. If there is no PCIeSlot associated with the PCIeDevice, the Slot properties will not be returned. Directed associations, ‘containing’ and ‘contained_by’, are used to establish a link between PCIeDevice and PCIeSlot. The 'containing' association establishes a link from a PCIeSlot to the PCIeDevice it contains, while the 'contained_by' association establishes a link from a PCIeDevice to the PCIeSlot that contains it. Additionally, this commit refactors the PCIeDevice schema to improve its structure, readability, and adherence to best practices. Redfish commit: https://redfish.dmtf.org/schemas/v1/PCIeDevice.v1_11_0.json Tested: Validator Passed ''' curl -k https://$bmc/redfish/v1/Systems/system/PCIeDevices/pcie_card7 { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card7", "@odata.type": "#PCIeDevice.v1_9_0.PCIeDevice", "Id": "pcie_card7", "Name": "PCIe Device", "PCIeFunctions": { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card7/PCIeFunctions" }, "PCIeInterface": { "LanesInUse": -1 }, "Slot": { "Lanes": 0, "SlotType": "FullLength" }, "Status": { "Health": "OK", "State": "Absent" } } PCIeDevice with no association: curl -k https://$bmc/redfish/v1/Systems/system/PCIeDevices/pcie_card0 { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card0", "@odata.type": "#PCIeDevice.v1_9_0.PCIeDevice", "Id": "pcie_card0", "Name": "PCIe Device", "PCIeFunctions": { "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card0/PCIeFunctions" }, "PCIeInterface": { "LanesInUse": -1 }, "Status": { "Health": "OK", "State": "Absent" } } ''' Change-Id: I15ac33be0035721f44c60fded795092896bce9bd Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com> Signed-off-by: Ed Tanous <edtanous@google.com>
Diffstat (limited to 'Redfish.md')
-rw-r--r--Redfish.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/Redfish.md b/Redfish.md
index 347048dd5f..a7b3445d82 100644
--- a/Redfish.md
+++ b/Redfish.md
@@ -863,6 +863,10 @@ other.
- LanesInUse
- PCIeType
- SerialNumber
+- Slot
+ - Lanes
+ - PCIeType
+ - SlotType
- SparePartNumber
- Status