Skip to content

Commit

Permalink
Expose OEM information for PCIeDevice and PCIeFunction
Browse files Browse the repository at this point in the history
Some vendors include useful information in their OEM information for
these objects. Make it possible to access this data.

Signed-off-by: Sean McGinnis <[email protected]>
  • Loading branch information
stmcginnis committed May 15, 2024
1 parent 8941470 commit 2062c26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions redfish/pciedevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ type PCIeDevice struct {
// Model shall be the name by which the manufacturer generally refers to the
// PCIe device.
Model string
// Oem shall contain the OEM extensions. All values for properties that
// this object contains shall conform to the Redfish Specification
// described requirements.
Oem json.RawMessage
// PCIeInterface is used to connect this PCIe Device to its host or
// upstream switch.
PCIeInterface PCIeInterface
Expand Down
4 changes: 4 additions & 0 deletions redfish/pciefunction.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ type PCIeFunction struct {
// FunctionType shall be the function type of the PCIe device function such
// as Physical or Virtual.
FunctionType FunctionType
// Oem shall contain the OEM extensions. All values for properties that
// this object contains shall conform to the Redfish Specification
// described requirements.
Oem json.RawMessage
// RevisionID shall be the PCI Revision ID of the PCIe device function.
RevisionID string
// Status shall contain any status or health properties of the resource.
Expand Down

0 comments on commit 2062c26

Please sign in to comment.