-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
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 |
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.
Not sure why parameter details were removed. Need to add them.
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.
done
def initialize(client, params = {}, api_ver = nil) | ||
@data ||= {} | ||
# Default values | ||
@data['type'] ||= 'InterconnectV7' |
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.
There is no interconnectV7, please remove the initialize method if same method exist in API1200.
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.
done
def initialize(client, params = {}, api_ver = nil) | ||
@data ||= {} | ||
# Default values | ||
@data['type'] ||= 'InterconnectV7' |
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.
same as above.
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.
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') |
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.
please correct this as well
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.
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') |
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.
same as above
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.
done
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.
LGTM
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.
LGTM
Description
API1600 support for Interconnects
Issues Resolved
NA
Check List
$ rake test
).