-
Notifications
You must be signed in to change notification settings - Fork 71
Publish Location code under PCIeDevice schema (#1083) #1239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish Location code under PCIeDevice schema (#1083) #1239
Conversation
75a5c5b to
428a4df
Compare
|
Original commit : 8e7bf1f |
428a4df to
4aa3ba9
Compare
|
PrettyName and Location are different. So, please make separate PRs;
|
4aa3ba9 to
a3ef5ee
Compare
@baemyung Can you please tell me why we need to put |
They are not related. In fact, PrettyName part is a bugfix (e.g. missing piece) of PR #1201. So, this part is better to be separate. |
a3ef5ee to
cdd6cc4
Compare
baemyung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
c8744f4 to
dde2c22
Compare
The commit publishes Location code under PCIeDevice schema.
Validator was executed and no new error was found.
Test:
curl -k -H "X-Auth-Token: $bmc_token" -X GET "https://${BMC_IP}/redfish/
v1/Systems/system/PCIeDevices/chassis_motherboard_pcieslot0_pcie_card0"
{
"@odata.id": "/redfish/v1/Systems/system/PCIeDevices/
chassis_motherboard_pcieslot0_pcie_card0",
"@odata.type": "#PCIeDevice.v1_9_0.PCIeDevice",
"Id": "chassis_motherboard_pcieslot0_pcie_card0",
"Oem": {
"IBM": {
"@odata.type": "#IBMPCIeDevice.v1_0_0.IBM",
"LinkReset": false
}
},
"PCIeFunctions": {
"@odata.id": "/redfish/v1/Systems/system/PCIeDevices/
chassis_motherboard_pcieslot0_pcie_card0/PCIeFunctions"
},
"PCIeInterface": {
"LanesInUse": null
},
"Slot": {
"Location": {
"PartLocation": {
"ServiceLabel": "U78DA.ND0.WZS003T-P0-C0"
}
},
"SlotType": "FullLength"
},
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
Change-Id: Iba1b98734fdfee43c2995f6c9f1f2660e196814a
Signed-off-by: Sunny Srivastava <[email protected]>
Co-authored-by: Sunny Srivastava <[email protected]>
Signed-off-by: Souvik Roy <[email protected]>
dde2c22 to
eeec232
Compare
|
Hi, requesting more reviews on this PR. |
jeaaustx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
nit: If you add three backticks on a line before and on a line after the curl commands and their output in the commit message and in the PR message it will format nicer.
The commit publishes Location code under PCIeDevice schema.
Validator was executed and no new error was found.
Test:$bmc_token" -X GET "https://$ {BMC_IP}/redfish/v1/Systems/system/PCIeDevices/chassis_motherboard_pcieslot0_pcie_card0" {
curl -k -H "X-Auth-Token:
"@odata.id": "/redfish/v1/Systems/system/PCIeDevices/chassis_motherboard_pcieslot0_pcie_card0",
"@odata.type": "#PCIeDevice.v1_9_0.PCIeDevice",
"Id": "chassis_motherboard_pcieslot0_pcie_card0",
"Oem": {
"IBM": {
"@odata.type": "#IBMPCIeDevice.v1_0_0.IBM",
"LinkReset": false
}
},
"PCIeFunctions": {
"@odata.id": "/redfish/v1/Systems/system/PCIeDevices/chassis_motherboard_pcieslot0_pcie_card0/PCIeFunctions"
},
"PCIeInterface": {
"LanesInUse": null
},
"Slot": {
"Location": {
"PartLocation": {
"ServiceLabel": "U78DA.ND0.WZS003T-P0-C0"
}
},
"SlotType": "FullLength"
},
"Status": {
"Health": "OK",
"State": "Enabled"
}
}
Change-Id: Iba1b98734fdfee43c2995f6c9f1f2660e196814a