-
Notifications
You must be signed in to change notification settings - Fork 87
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
[4.0][neutron][Cisco ACI]: Multiple VMM domain support (SOC - 10471) #2228
base: stable/4.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ | |
else | ||
cisco_nexus_link_action = "delete" | ||
end | ||
link "/etc/neutron/neutron-server.conf.d/100-ml2_conf_cisco.ini.conf" do | ||
link "#{node[:neutron][:platform][:ml2_cisco_config_file]}" do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Style/UnneededInterpolation: Prefer to_s over string interpolation. |
||
to "/etc/neutron/plugins/ml2/ml2_conf_cisco.ini" | ||
action cisco_nexus_link_action | ||
notifies :restart, "service[#{node[:neutron][:platform][:service_name]}]" | ||
|
@@ -99,7 +99,7 @@ | |
else | ||
cisco_apic_link_action = "delete" | ||
end | ||
link "/etc/neutron/neutron-server.conf.d/100-ml2_conf_cisco_apic.ini.conf" do | ||
link "#{node[:neutron][:platform][:ml2_cisco_apic_config_file]}" do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Style/UnneededInterpolation: Prefer to_s over string interpolation. |
||
to "/etc/neutron/plugins/ml2/ml2_conf_cisco_apic.ini" | ||
action cisco_apic_link_action | ||
notifies :restart, "service[#{node[:neutron][:platform][:service_name]}]" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def upgrade(tattr, tdep, attr, dep) | ||
unless attr["apic"].key?("apic_vmms") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Style/IfUnlessModifier: Favor modifier unless usage when having a single-line body. Another good alternative is the usage of control flow &&/||. (https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier) |
||
attr["apic"]["apic_vmms"] = tattr["apic"]["apic_vmms"] | ||
end | ||
|
||
return attr, dep | ||
end | ||
|
||
def downgrade(tattr, tdep, attr, dep) | ||
unless tattr["apic"].key?("apic_vmms") | ||
attr["apic"].delete("apic_vmms") if attr.key?("apic_vmms") | ||
end | ||
|
||
return attr, dep | ||
end |
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.
Metrics/LineLength: Line is too long. [102/100] (https://github.com/SUSE/style-guides/blob/master/Ruby.md#metricslinelength)