diff options
author | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-03-11 08:49:00 +0300 |
---|---|---|
committer | Lakshmi Yadlapati <lakshmiy@us.ibm.com> | 2023-04-28 23:35:16 +0300 |
commit | 727a046ccfa1d936ce984e30d6e257ea027ef587 (patch) | |
tree | 6b45d800b9bde9a05c8cbd2806adc36a5a976759 /src/boost_url.cpp | |
parent | 35ad613d2846884a5d654acf31d56ab3a6255afa (diff) | |
download | bmcweb-727a046ccfa1d936ce984e30d6e257ea027ef587.tar.xz |
Refactor SystemPCIeFunction method
Move SystemPCIeFunction 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/0",
"@odata.type": "#PCIeFunction.v1_2_3.PCIeFunction",
"ClassCode": "0x020000",
"DeviceId": "0x1657",
"FunctionId": 0,
"Id": "0",
"Links": {
"PCIeDevice": {
"@odata.id": "/redfish/v1/Systems/system/PCIeDevices/pcie_card7"
}
},
"Name": "PCIe Function",
"RevisionId": "0x01",
"SubsystemId": "0x0420",
"SubsystemVendorId": "0x1014",
"VendorId": "0x14e4"
}
```
Change-Id: I99add03210983a255a615512b6137d04982f83a5
Signed-off-by: Lakshmi Yadlapati <lakshmiy@us.ibm.com>
Diffstat (limited to 'src/boost_url.cpp')
0 files changed, 0 insertions, 0 deletions