sushy-tools/sushy_tools/emulator/templates/virtual_media_collection.json
Ilya Etingof e1c844dfa7 Add Virtual Media support
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
2019-07-02 16:12:51 +02:00

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."
}