Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Conversation

@Manoj-M-97
Copy link

@Manoj-M-97 Manoj-M-97 commented Apr 23, 2019

Description

[Describe what this change achieves]
The code has been changed in :

  1. python-hpOneView\hpOneView\resources\servers\migratable_vc_domains.py
    The change is in the function "make_migration_information" wherein a parameter has been
    added with the default value for 'type' as 'migratable-vc-domains'.

  2. python-hpOneView\examples\migratable_vc_domains.py
    The call to the above function will have a parameter passed as "type = 'MigratableVcDomainV300' "

Issues Resolved

[List any issues this PR will resolve. e.g., Fixes #1]
Issue #431

Check List

  • New functionality includes testing.
    • All tests pass for Python 2.7+ & 3.4+($ tox).
  • New functionality has been documented in the README if applicable.
    • New functionality has been thoroughly documented in the examples (please include helpful comments).
    • New endpoints supported are updated in the endpoints-support.md file.
  • Changes are documented in the CHANGELOG.

@madhav-bharadwaj
Copy link
Member

Can you please update the test cases as well? to match the resource file changes you have made.

"credentials": {
"userName": "Administrator",
"password": ""
"password": "GSE#admin1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove password

config['enclosure_username'],
config['enclosure_password'],
config['vcmUsername'], config['vcmPassword'],
type = 'MigratableVcDomainV300',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove extra line

@staticmethod
def make_migration_information(oaIpAddress, oaUsername, oaPassword, vcmUsername, vcmPassword,
iloLicenseType='OneView', enclosureGroupUri=None):
type = 'migratable-vc-domains', iloLicenseType='OneView', enclosureGroupUri=None):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Adding type filed here is not a good idea.
Add DEFAULT_VALUES class variable to support type field for different versions.

Refer this file, https://github.com/HewlettPackard/python-hpOneView/blob/master/hpOneView/resources/networking/fc_networks.py

Copy link
Collaborator

@sijeesh sijeesh left a comment

Choose a reason for hiding this comment

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

Looks good to me, need to make some changes in MigratableVcDoamins class

Update MigratableVcDoamins class - inherit from Resource base class and remove common methods as delete create, get, etc. from MigratableVcDomains class

Use FCNetwork module for reference - https://github.com/HewlettPackard/python-hpOneView/blob/master/hpOneView/resources/networking/fc_networks.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants