Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mpolski
Copy link

@mpolski mpolski commented Jun 18, 2019

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

  • New functionality includes testing.
    • All tests pass for go 1.11 + gofmt checks.
  • New functionality has been documented in the README if applicable.
    • New functionality has been thoroughly documented in the examples (please include helpful comments).
  • Changes are documented in the CHANGELOG.

@AnushaY1916 AnushaY1916 self-requested a review June 25, 2019 07:20
Copy link
Collaborator

@AnushaY1916 AnushaY1916 left a 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": {}
Copy link
Collaborator

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",
Copy link
Collaborator

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"
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants