-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from Comcast/storage_controller_vol_drives_ilo…
…5_ver3.x Storage controller vol drives ilo5 ver3.x
- Loading branch information
Showing
7 changed files
with
101 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,20 +44,25 @@ type NVMeDriveMetrics struct { | |
// Logical Drives | ||
// /redfish/v1/Systems/X/SmartStorage/ArrayControllers/X/LogicalDrives/X/ | ||
type LogicalDriveMetrics struct { | ||
Id string `json:"Id"` | ||
CapacityMiB int `json:"CapacityMiB"` | ||
Description string `json:"Description"` | ||
DisplayName string `json:"DisplayName"` | ||
InterfaceType string `json:"InterfaceType"` | ||
Identifiers []Identifiers `json:"Identifiers"` | ||
LogicalDriveName string `json:"LogicalDriveName"` | ||
LogicalDriveNumber int `json:"LogicalDriveNumber"` | ||
Name string `json:"Name"` | ||
Raid string `json:"Raid"` | ||
RaidType string `json:"RAIDType"` | ||
Status Status `json:"Status"` | ||
StripeSizebytes int `json:"StripeSizebytes"` | ||
VolumeUniqueIdentifier string `json:"VolumeUniqueIdentifier"` | ||
Id string `json:"Id"` | ||
CapacityMiB int `json:"CapacityMiB"` | ||
Description string `json:"Description"` | ||
DisplayName string `json:"DisplayName"` | ||
InterfaceType string `json:"InterfaceType"` | ||
Identifiers []Identifiers `json:"Identifiers"` | ||
Links DriveCollection `json:"Links"` | ||
LogicalDriveName string `json:"LogicalDriveName"` | ||
LogicalDriveNumber int `json:"LogicalDriveNumber"` | ||
Name string `json:"Name"` | ||
Raid string `json:"Raid"` | ||
RaidType string `json:"RAIDType"` | ||
Status Status `json:"Status"` | ||
StripeSizebytes int `json:"StripeSizebytes"` | ||
VolumeUniqueIdentifier string `json:"VolumeUniqueIdentifier"` | ||
} | ||
|
||
type DriveCollection struct { | ||
DrivesCount int `json:"[email protected]"` | ||
} | ||
|
||
type Identifiers struct { | ||
|
@@ -123,14 +128,14 @@ func (w *LocationWrapper) UnmarshalJSON(data []byte) error { | |
// /redfish/v1/Systems/X/SmartStorage/ArrayControllers/ for Logical and Physical Drives | ||
// /redfish/v1/Chassis/X/Drives/ for NVMe Drive(s) | ||
type GenericDrive struct { | ||
Members []Members `json:"Members,omitempty"` | ||
LinksUpper LinksUpper `json:"Links,omitempty"` | ||
LinksLower LinksLower `json:"links,omitempty"` | ||
MembersCount int `json:"[email protected],omitempty"` | ||
DriveCount int `json:"[email protected],omitempty"` | ||
StorageDrives []Link `json:"Drives,omitempty"` | ||
Volumes Link `json:"Volumes,omitempty"` | ||
Controllers Link `json:"Controllers,omitempty"` | ||
Members []Members `json:"Members,omitempty"` | ||
LinksUpper LinksUpper `json:"Links,omitempty"` | ||
LinksLower LinksLower `json:"links,omitempty"` | ||
MembersCount int `json:"[email protected],omitempty"` | ||
DriveCount int `json:"[email protected],omitempty"` | ||
StorageDrives []Link `json:"Drives,omitempty"` | ||
Volumes LinksWrapper `json:"Volumes,omitempty"` | ||
Controllers Link `json:"Controllers,omitempty"` | ||
} | ||
|
||
type Members struct { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters