e0d510608d
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
14 lines
536 B
JSON
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 }}
|
|
}
|