From e0d510608dace56abb481af35e096ea47e8c309b Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Thu, 26 Nov 2020 13:48:37 +0100 Subject: [PATCH] Adding status to ethernet interface template The status of a resource should be always reported by redfish, let's add a static one for the ethernet interface too for completeness. Change-Id: Ie0d0b7ccf55685c46de2163baeda4e40ed845eaa --- sushy_tools/emulator/templates/ethernet_interface.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sushy_tools/emulator/templates/ethernet_interface.json b/sushy_tools/emulator/templates/ethernet_interface.json index a3649c1b..0946cc2e 100644 --- a/sushy_tools/emulator/templates/ethernet_interface.json +++ b/sushy_tools/emulator/templates/ethernet_interface.json @@ -2,6 +2,10 @@ "@odata.type": "#EthernetInterface.v1_0_2.EthernetInterface", "Id": {{ nic['id']|string|tojson }}, "Name": {{ "VNIC %s"|format(nic['id'])|tojson }}, + "Status": { + "State": "Enabled", + "Health": "OK" + }, "PermanentMACAddress": {{ nic['mac']|string|tojson }}, "MACAddress": {{ nic['mac']|string|tojson }}, "@odata.context": "/redfish/v1/$metadata#EthernetInterface.EthernetInterface",