Skip to content
Commit 35ad613d authored by Lakshmi Yadlapati's avatar Lakshmi Yadlapati
Browse files

Refactor SystemPCIeFunctionCollection method



Move SystemPCIeFunctionCollection to a separate method, and refactor
the code.

Validate the PCIe device path and add link header.

Tested: Validator passed

```
{
  "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card7/PCIeFunctions",
  "@odata.type": "#PCIeFunctionCollection.PCIeFunctionCollection",
  "Description": "Collection of PCIe Functions for PCIe Device pcie_card7",
  "Members": [
    {
      "@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card7/PCIeFunctions/0"
    }
  ],
  "Name": "PCIe Function Collection",
  "PCIeFunctions@odata.count": 1
}
```

Change-Id: I5aa10ce0b4d2f20104612f840cf4098698a83470
Signed-off-by: default avatarLakshmi Yadlapati <lakshmiy@us.ibm.com>
parent 543f9a75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment