diff --git a/releasenotes/notes/add-volume-collection-to-storage-template-b673a7acfbb1a03e.yaml b/releasenotes/notes/add-volume-collection-to-storage-template-b673a7acfbb1a03e.yaml new file mode 100644 index 00000000..ddce1335 --- /dev/null +++ b/releasenotes/notes/add-volume-collection-to-storage-template-b673a7acfbb1a03e.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Adds the ``Volumes`` navigation property to the ``Storage`` emulator + template. diff --git a/sushy_tools/emulator/templates/storage.json b/sushy_tools/emulator/templates/storage.json index 00f98f46..8fb2ac49 100644 --- a/sushy_tools/emulator/templates/storage.json +++ b/sushy_tools/emulator/templates/storage.json @@ -47,6 +47,9 @@ {% endfor -%} ], {% endif -%} + "Volumes": { + "@odata.id": {{ "/redfish/v1/Systems/%s/Storage/%s/Volumes"|format(identity, storage['Id'])|tojson }} + }, "@odata.context": "/redfish/v1/$metadata#Storage.Storage", "@odata.id": {{ "/redfish/v1/Systems/%s/Storage/%s"|format(identity, storage['Id'])|tojson }} }