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>
This commit is contained in:
Doug Goldstein 2024-08-31 12:12:36 -05:00
parent 9246f0ad69
commit 3abb6caf9c
No known key found for this signature in database

View File

@ -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')