From 3179105b5d9be791d79302d27ceb8e94f8670a6c Mon Sep 17 00:00:00 2001 From: Sunny Srivastava Date: Fri, 12 Mar 2021 10:39:16 -0600 Subject: Implementation of FabricAdapter schema in bmcweb This commit implements FabricAdapter and FabricAdapter collection schema. This code assumes all FabricAdapters are under /redfish/v1/Systems/system like we do for Memory and Processors. The schema can be used to publish inventory properties for FRUs which can be modelled as Fabric adapters. As a current use case, this schema is required to link ports on fabric adapters back to the system. A FabricAdapter represents the physical fabric adapter capable of connecting to an interconnect fabric. Examples include but are not limited to Ethernet, NVMe over Fabrics, Gen-Z, and SAS fabric adapters. Tested: Manually tested on the system, Run Redfish validator. Found no error. { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters", "@odata.type": "#FabricAdapterCollection.FabricAdapterCollection", "Members": [ { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/disk_backplane0" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/disk_backplane1" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card0" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card3" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card4" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card8" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card10" }, { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card11" } ], "Members@odata.count": 8, "Name": "Fabric Adapter Collection" } { "@odata.id": "/redfish/v1/Systems/system/FabricAdapters/pcie_card11", "@odata.type": "#FabricAdapter.v1_0_0.FabricAdapter", "Id": "pcie_card11", "Name": "Fabric Adapter" } Signed-off-by: sunny srivastava Change-Id: I4d3bc31a6f0036c262c0e30481d0da4aaf59b5ab Signed-off-by: Lakshmi Yadlapati --- Redfish.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Redfish.md') diff --git a/Redfish.md b/Redfish.md index 3f65de81df..ba58c55ba0 100644 --- a/Redfish.md +++ b/Redfish.md @@ -664,6 +664,17 @@ other. - Members@odata.count - Description +### /redfish/v1/Systems/system/FabricAdapters/ + +#### FabricAdapterCollection + +- Members +- Members@odata.count + +### /redfish/v1/Systems/system/FabricAdapters/{FabricAdapterId}/ + +#### FabricAdapter + ### /redfish/v1/Systems/system/LogServices/ #### LogServiceCollection -- cgit v1.2.3