Skip to content

bmcweb: Add 'revision' for Storage URI#63

Open
ankitaprasad2206 wants to merge 1 commit intointeg_sp8from
fix-missing-revision-issue-for-drive-uri
Open

bmcweb: Add 'revision' for Storage URI#63
ankitaprasad2206 wants to merge 1 commit intointeg_sp8from
fix-missing-revision-issue-for-drive-uri

Conversation

@ankitaprasad2206
Copy link
Copy Markdown
Collaborator

revision was missing from the Storage Info.
Added the code to fetch revision.

Tested: On Congo. Revision is fetched.

'''

{
"@odata.id": "/redfish/v1/Systems/system/Storage/1/Drives/Drive0", "@odata.type": "#Drive.v1_7_0.Drive",
"CapacityBytes": 1000204886016,
"Id": "Drive0",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/HPM"
}
},
"Manufacturer": "Samsung SSD 990 EVO 1TB ",
"MediaType": "NVMe",
"Model": "Samsung SSD 990 EVO 1TB ",
"Name": "Drive0",
"Revision": "0B2QKXJ7",
"SerialNumber": "S7M3NS0Y210852A ",
"Status": {
"State": "Enabled"
}
}

'''

revision was missing from the Storage Info.
Added the code to fetch revision.

Tested: On Congo. Revision is fetched.

'''

{
"@odata.id": "/redfish/v1/Systems/system/Storage/1/Drives/Drive0",
"@odata.type": "#Drive.v1_7_0.Drive",
"CapacityBytes": 1000204886016,
"Id": "Drive0",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/HPM"
}
},
"Manufacturer": "Samsung SSD 990 EVO 1TB ",
"MediaType": "NVMe",
"Model": "Samsung SSD 990 EVO 1TB ",
"Name": "Drive0",
"Revision": "0B2QKXJ7",
"SerialNumber": "S7M3NS0Y210852A ",
"Status": {
"State": "Enabled"
}
}

'''

Signed-off-by: ankprasa <ankprasa@amd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants