Skip to content
Commit 543f9a75 authored by Lakshmi Yadlapati's avatar Lakshmi Yadlapati
Browse files

Refactor SystemPCIeDevice method

Move SystemPCIeDevice to a separate method, and refactor the code.
Validate the PCIe device path.

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",
  "PCIeInterface": {
    "LanesInUse": 4,
    "PCIeType": "Gen1"
  }
}
```

Change-Id: Ib9bd3ff37293b64adbf9987c3d932882befd21d4
Signed-off-by: default avatarLakshmi Yadlapati <lakshmiy@us.ibm.com>
parent b8f38ead
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