
Simple Storage resource is a storage model used to represent the properties of a storage controller and its directly attached devices. As of this patch, the Simple Storage emulation is only supported for the libvirt driver for storage devices that are configured as a Volume via libvirt and attached to a VM/domain. Story: #2005948 Task: #34313 Change-Id: If10bd04d517600c3a69bb43fe0ea50f2efd62422
21 lines
939 B
JSON
21 lines
939 B
JSON
{
|
|
"@odata.type": "#SimpleStorage.v1_2_0.SimpleStorage",
|
|
"Id": {{ simple_storage['Id']|string|tojson }},
|
|
"Name": {{ "%s Controller"|format(simple_storage['Name'])|tojson }},
|
|
"Devices": [
|
|
{% for device in simple_storage['DeviceList'] %}
|
|
{
|
|
"@odata.type": "#SimpleStorage.v1_1_0.Device",
|
|
"Name": {{ device['Name']|string|tojson }},
|
|
"CapacityBytes": {{ device['CapacityBytes'] }},
|
|
"Status": {
|
|
"@odata.type": "#Resource.Status",
|
|
"State": "Enabled",
|
|
"Health": "OK"
|
|
}
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"@odata.context": "/redfish/v1/$metadata#SimpleStorage.SimpleStorage",
|
|
"@odata.id": {{ "/redfish/v1/Systems/%s/SimpleStorage/%s"|format(identity, simple_storage['Id'])|tojson }}
|
|
} |