summaryrefslogtreecommitdiff
path: root/redfish-core/include/registries
diff options
context:
space:
mode:
authorWilly Tu <wltu@google.com>2022-03-29 01:25:15 +0300
committerEd Tanous <ed@tanous.net>2022-05-02 19:13:22 +0300
commit61b83d0cce255cf98d6a2bbe6924307b69742959 (patch)
treeac2a28a702cedb5119c08a1de183b307eea605ae /redfish-core/include/registries
parent5611d5485a9543c7a745814d8d7bdaf4dc1b7836 (diff)
downloadbmcweb-61b83d0cce255cf98d6a2bbe6924307b69742959.tar.xz
storage: Call function only if interfaces exist
Avoid making the dbus call if the interface does not exist and is expected to error out to reduce the number of dbus calls. Tested: Redfish Validator passed for Drives ``` $ wget -qO- \ http://localhost:80/redfish/v1/Systems/system/Storage/1/Drives/drive { "@odata.id": "/redfish/v1/Systems/system/Storage/1/Drives/drive", "@odata.type": "#Drive.v1_7_0.Drive", "Id": "warthog", "Links": { "Chassis": { "@odata.id": "/redfish/v1/Chassis/chassis" } }, "Manufacturer": "XXX", "MediaType": "SSD", "Model": "XXX", "Name": "drive", "PartNumber": "xxxxxxxxxxxxx", "Protocol": "SATA", "SerialNumber": "123456", "Status": { "Health": "OK", "HealthRollup": "OK", "State": "Enabled" } } ``` Change-Id: Ic83c8ee5a49f75b71d443781faf8b65d8fab31b6 Signed-off-by: Willy Tu <wltu@google.com>
Diffstat (limited to 'redfish-core/include/registries')
0 files changed, 0 insertions, 0 deletions