-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding support for SAS Interconnects #166
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add an example file and also update the endpoints-support.md and change log. You can refer to this PR https://github.com/HewlettPackard/oneview-golang/pull/133/files
Modified string `json:"modified,omitempty"` // "modified": "2018-12-03T18:26:43.335Z", | ||
RefreshState string `json:"refreshState,omitempty"` // "refreshState": "NotRefreshing" | ||
StateReason string `json:"stateReason,omitempty"` // "stateReason": null | ||
InterconnectLocation SASInterconnectLocation `json:"interconnectLocation"` // "interconnectLocation": {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to create a new Struct, InterconnectLocation struct exists in interconnect.go file. You can make use of it.
Model string `json:"model,omitempty"` // "model": "Synergy 12Gb SAS Connection Module" | ||
SasWWN string `json:"sasWWN,omitempty"` // "sasWWN": "50014380421BE900" | ||
EnclosureURI utils.Nstring `json:"enclosureUri,omitempty"` // "enclosureUri": "/rest/enclosures/013645CN759000AC" | ||
SerialNumber string `json:"serialNumber,omitempty"` // "serialNumber": "TWT732W0CY", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please keep all the fields in alphabetical order?
SasLogicalInterconnectURI utils.Nstring `json:"sasLogicalInterconnectUri,omitempty"` // "sasLogicalInterconnectUri": "/rest/sas-logical-interconnects/c6e17ed8-de41-4d53-aa50-2da58a0d63b8" | ||
InterconnectTypeURI utils.Nstring `json:"interconnectTypeUri,omitempty"` //"interconnectTypeURI": "/rest/sas-interconnect-types/Synergy12GbSASConnectionModule" | ||
PortCount int `json:"portCount,omitempty"` // "portCount": 12, | ||
EnclosureName string `json:"enclosureName,omitempty"` // "enclosureName": "CEC" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EnclosureName and InitialScopeUris feilds are missing.
Description
Similar to other components (enclosures, server hardware) adding support for SAS Interconnects to be able to pull their status for example for monitoring purposes
Issues Resolved
none
Check List