bmcweb: Enable PCIe Slots implementation
Enabling PCIe Slots implementation for downstream only
Tested:
Izumi:
```
ddcbs9:~# wget -qO- localbmc:80/redfish/v1/Chassis/izumi/PCIeSlots
{
"@odata.id": "/redfish/v1/Chassis/izumi/PCIeSlots",
"@odata.type": "#PCIeSlots.v1_4_1.PCIeSlots",
"Id": "1",
"Name": "PCIe Slot Information",
"Slots": [
{
"HotPluggable": false,
"Lanes": 0,
"Location": {
"PartLocation": {
"ServiceLabel": "DC_SCM"
}
},
"PCIeType": false,
"SlotType": "OEM",
"Status": {
"State": "Enabled"
}
},
{
"HotPluggable": false,
"Location": {
"PartLocation": {
"ServiceLabel": "PE0"
}
},
"SlotType": "OEM",
"Status": {
"State": "Enabled"
}
},
...
{
"HotPluggable": false,
"Location": {
"PartLocation": {
"ServiceLabel": "PE7"
}
},
"SlotType": "OEM",
"Status": {
"State": "Absent"
}
}
]
}ddcbs9:~#
```
Tested on Endurance Fabric Tray BMC, where there are no PCIeSlots,
```
root@mvii6-nfd02:~# curl localhost/redfish/v1/Chassis/Endurance/PCIeSlots
{
"error": {
"@Message.ExtendedInfo": [
{
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The requested resource of type named 'PCIeSlots' was not found.",
"MessageArgs": [
"",
"PCIeSlots"
],
"MessageId": "Base.1.13.0.ResourceNotFound",
"MessageSeverity": "Critical",
"Resolution": "Provide a valid resource identifier and resubmit the request."
}
],
"code": "Base.1.13.0.ResourceNotFound",
"message": "The requested resource of type named 'PCIeSlots' was not found."
}
root@mvii6-nfd02:~#
```
Patch Tracking Bug: b/290656100
Upstream info / review: N/A
Upstream-Status: Inappropriate
Justification: Enabling PCIe Slots implementation for downstream only.
Upstream patch has caused schema validator failures and reverted
(e825cbc8f967e54dfd6d911ebbbc6b2bfc7bc543)
Google-Bug-Id: 283486082
Change-Id: Ic25dced36498dbd7ee4df5c18007a29765eda10b
Signed-off-by: Konda Reddy Kachana <kkachana@google.com>
2 files changed