diff options
author | Willy Tu <wltu@google.com> | 2022-12-16 03:42:02 +0300 |
---|---|---|
committer | Nikhil Namjoshi <nikhilnamjoshi@google.com> | 2023-01-31 07:53:29 +0300 |
commit | cef57e855f5a800222d5e5ba47cbbe69174211e9 (patch) | |
tree | 47252e373a7a2cdda4b850e49a863d82634f0829 /scripts | |
parent | 20fc307fb67db61f2c6eb4c6da3e2a9dcf384a14 (diff) | |
download | bmcweb-cef57e855f5a800222d5e5ba47cbbe69174211e9.tar.xz |
Set state to Absent on Present == false
- State=Absent means this function or resource is either not present
or detected.
- State=Disabled means that the device exists, but has been disabled.
Tested:
Redfish Validator Passed
Verified that absence of Drive shows [Status][State] = "Absent"
```
wget -qO- http://localhost:80/redfish/v1/Chassis/mychassis/Drives/Drive_0
{
"@odata.id": "/redfish/v1/Chassis/mychassis/Drives/Drive_0",
"@odata.type": "#Drive.v1_7_0.Drive",
"Id": "Drive_0",
"Links": {
"Chassis": {
"@odata.id": "/redfish/v1/Chassis/mychassis"
}
},
.....,
.....,
.....,
"Protocol": "....",
"Status": {
"State": "Absent"
}
}
```
Change-Id: I99217c1c3c94df5c10fb158d3d1ef65d70d0ebb3
Signed-off-by: Willy Tu <wltu@google.com>
Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions