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

API1600 support for Interconnects #406

Merged
merged 6 commits into from
May 26, 2020
Merged

Conversation

chebroluharika
Copy link
Collaborator

@chebroluharika chebroluharika commented May 13, 2020

Description

API1600 support for Interconnects

Issues Resolved

NA

Check List

  • New functionality includes testing.
    • All tests pass ($ rake test).
  • 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.

@soodpr
Copy link
Member

soodpr commented May 14, 2020

Please raise LI resource PR as well as Interconnect has dependency on LI. I will review this later

# api_version = 600 & variant = Synergy to OneviewSDK::API600::Synergy::Interconnect'
# - 200, 300, 500, 600, 800, 1000, 1200, 1600
# Supoported Variants
# C7000, Synergy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure why parameter details were removed. Need to add them.

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

def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values
@data['type'] ||= 'InterconnectV7'
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is no interconnectV7, please remove the initialize method if same method exist in API1200.

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

def initialize(client, params = {}, api_ver = nil)
@data ||= {}
# Default values
@data['type'] ||= 'InterconnectV7'
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above.

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

describe '#initialize' do
it 'should be initialize the instance with default values' do
item = described_class.new(@client_1600)
expect(item['type']).to eq('InterconnectV7')
Copy link
Collaborator

Choose a reason for hiding this comment

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

please correct this 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

describe '#initialize' do
it 'should be initialize the instance with default values' do
item = described_class.new(@client_1600)
expect(item['type']).to eq('InterconnectV7')
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as above

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

Copy link
Collaborator

@nabhajit-ray nabhajit-ray 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

@AsisBagga AsisBagga left a comment

Choose a reason for hiding this comment

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

LGTM

@chebroluharika chebroluharika merged commit ac2cb43 into master May 26, 2020
@chebroluharika chebroluharika deleted the API1600/Interconnects branch May 26, 2020 10:35
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.

None yet

5 participants