From 18c5701cc58cddd0b3d05202633291fe32d43e7a Mon Sep 17 00:00:00 2001 From: Bill Dodd Date: Mon, 14 Sep 2020 16:21:37 -0500 Subject: [PATCH] Add Volumes nav property to Storage template The Storage emulator template did not include the Volumes navigation property. Without this property, a client cannot locate the Volumes collection. Adds the Volumes navigation property to the Storage emulator template. Change-Id: Iac05c0ee131cc077af43fea6c93d342ce11a81cd Story: 2003514 Task: 40776 --- ...lume-collection-to-storage-template-b673a7acfbb1a03e.yaml | 5 +++++ sushy_tools/emulator/templates/storage.json | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 releasenotes/notes/add-volume-collection-to-storage-template-b673a7acfbb1a03e.yaml 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 }} }