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

Hypervisor manager #209

Merged
merged 11 commits into from
Apr 16, 2020
Merged

Hypervisor manager #209

merged 11 commits into from
Apr 16, 2020

Conversation

nabhajit-ray
Copy link
Collaborator

@nabhajit-ray nabhajit-ray commented Apr 13, 2020

Description

[Added resources file for HypervisorManager supporting API800, API1000, API1200]

Issues Resolved

[]

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.

Corrected changes placement in the changelog
return hypervisorManagers, nil
}

func (c *OVClient) AddHypervisorManager(hypM HypervisorManager) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of AddHypervisorManager keep it as CreateHypervisorManager as this nomenclature is followed in all other resources.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

CHANGELOG.md Outdated
@@ -13,6 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
- Enclosure Group
- FC Network
- FCoE Network
- Hypervisor Managers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep this resource under an unreleased version. Don't try to update the notes of a released version

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the PR description, under issues, you have put a link to a PR. Is that PR related to this? Recheck it once.
And under issues, links to issues must be given but not a PR link.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

ClientOV *ov.OVClient
hypervisor_manager = "172.18.13.11"
hypervisor_manager_display_name = "HM2"
//hypervisor_manager_2 = "eth88"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the commented out code or add a statement on why it is commented

ovVer, _ := ovc.GetAPIVersion()
fmt.Println(ovVer)
initialScopeUris := &[]utils.Nstring{utils.NewNstring("/rest/scopes/03beb5a0-bf48-4c43-94a5-74b7b5de1255")}
hypervisorManager := ov.HypervisorManager{DisplayName: "HM1", Name: "172.18.13.11", Username: "dcs", Password: "dcs", Port: 443, InitialScopeUris: *initialScopeUris, Type: "HypervisorManagerV2"}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intend the initialization line by line so it's readable for the customers.

Copy link
Collaborator Author

@nabhajit-ray nabhajit-ray Apr 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

CHANGELOG.md Outdated
@@ -13,6 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
- Enclosure Group
- FC Network
- FCoE Network
- Hypervisor Managers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the addition here.

- This release supportsi for API V800,V1000 and V1200 for HypervisorManager resource

### Oneview Features supported
- HypervisorManager
# [v1.2.0] (2019-12-13)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space between the version notes

InitialScopeUris: *initialScopeUris,
Type: "HypervisorManagerV2"}

err := ovc.AddHypervisorManager(hypervisorManager)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename the function name here as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Modified function name as per the resource file
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.

LGTM

Copy link
Collaborator

@jyothisgm jyothisgm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nabhajit-ray nabhajit-ray merged commit 7670586 into master Apr 16, 2020
@nabhajit-ray nabhajit-ray deleted the HypervisorManager branch April 16, 2020 13:23
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.

3 participants