sushy-tools/sushy_tools/emulator/templates/ethernet_interface.json
Riccardo Pittau e0d510608d 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
2020-11-26 13:48:37 +01:00

14 lines
536 B
JSON

{
"@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",
"@odata.id": {{ "/redfish/v1/Systems/%s/EthernetInterfaces/%s"|format(identity, nic['id'])|tojson }}
}