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
This commit is contained in:
Riccardo Pittau 2020-11-26 13:48:37 +01:00
parent e7dbba93f1
commit e0d510608d
1 changed files with 4 additions and 0 deletions

View File

@ -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",