From 3abb6caf9c1181eaf5101cf34d02825b4c348163 Mon Sep 17 00:00:00 2001
From: Doug Goldstein <cardoe@cardoe.com>
Date: Sat, 31 Aug 2024 12:12:36 -0500
Subject: [PATCH] EthernetInterface without an Id

While the Id field is required on all Redfish object schemas, the field
can be omitted on some hardware. We do not need this field in any of the
code today so make it optional. This is no different than the Name field
being optional which is similarly required per the spec.

Closes-Bug: #2055542
Change-Id: Id78f57280261ef19dbd03046affef58546583aff
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
---
 sushy/resources/system/ethernet_interface.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sushy/resources/system/ethernet_interface.py b/sushy/resources/system/ethernet_interface.py
index 53c3c39a..962cf3f5 100644
--- a/sushy/resources/system/ethernet_interface.py
+++ b/sushy/resources/system/ethernet_interface.py
@@ -26,7 +26,7 @@ LOG = logging.getLogger(__name__)
 class EthernetInterface(base.ResourceBase):
     """This class adds the EthernetInterface resource"""
 
-    identity = base.Field('Id', required=True)
+    identity = base.Field('Id')
     """The Ethernet Interface identity string"""
 
     name = base.Field('Name')