e1c844dfa7
This patch introduces VirtualMedia resource. This change implements Insert/Eject actions against the VirtualMedia resource. Although all changes are just persistent mocks - virtual media emulation is not yet backed by virtualization drivers yet. The upcoming patches will convey virtual media calls to systems drivers (e.g. libvirt and/or nova) to make VMs bootable from the inserted images. Story: 2005149 Task: 29857 Change-Id: I32c7926865a4817363a5846f155b01b88ea3383c
16 lines
832 B
JSON
16 lines
832 B
JSON
{
|
|
"@odata.type": "#VirtualMediaCollection.VirtualMediaCollection",
|
|
"Name": "Virtual Media Services",
|
|
"Description": "Redfish-BMC Virtual Media Service Settings",
|
|
"Members@odata.count": {{ devices|length }},
|
|
"Members": [
|
|
{% for device in devices %}
|
|
{
|
|
"@odata.id": {{ "/redfish/v1/Managers/%s/VirtualMedia/%s"|format(uuid, device)|string|tojson }}
|
|
}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
],
|
|
"@odata.context": "/redfish/v1/$metadata#VirtualMediaCollection.VirtualMediaCollection",
|
|
"@odata.id": {{ "/redfish/v1/Managers/%s/VirtualMedia"|format(uuid)|string|tojson }},
|
|
"@Redfish.Copyright": "Copyright 2014-2017 Distributed Management Task Force, Inc. (DMTF). For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright."
|
|
} |