Skip to content

Commit 2062c26

Browse files
committed
Expose OEM information for PCIeDevice and PCIeFunction
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]>
1 parent 8941470 commit 2062c26

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

redfish/pciedevice.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ type PCIeDevice struct {
229229
// Model shall be the name by which the manufacturer generally refers to the
230230
// PCIe device.
231231
Model string
232+
// Oem shall contain the OEM extensions. All values for properties that
233+
// this object contains shall conform to the Redfish Specification
234+
// described requirements.
235+
Oem json.RawMessage
232236
// PCIeInterface is used to connect this PCIe Device to its host or
233237
// upstream switch.
234238
PCIeInterface PCIeInterface

redfish/pciefunction.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ type PCIeFunction struct {
111111
// FunctionType shall be the function type of the PCIe device function such
112112
// as Physical or Virtual.
113113
FunctionType FunctionType
114+
// Oem shall contain the OEM extensions. All values for properties that
115+
// this object contains shall conform to the Redfish Specification
116+
// described requirements.
117+
Oem json.RawMessage
114118
// RevisionID shall be the PCI Revision ID of the PCIe device function.
115119
RevisionID string
116120
// Status shall contain any status or health properties of the resource.

0 commit comments

Comments
 (0)