Skip to content

Commit

Permalink
Merge pull request #6277 from h-kataria/fix_netowrk_port_summary
Browse files Browse the repository at this point in the history
Fix loading of Network Port details screen
  • Loading branch information
mzazrivec committed Oct 8, 2019
2 parents 163f602 + 09231fa commit f10324a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/network_port_helper/textual_summary.rb
Expand Up @@ -59,6 +59,8 @@ def textual_device
h[:title] = _("Show Instance")
end
h
elsif device.kind_of?(LoadBalancer)
device.name
else
device
end
Expand Down
10 changes: 10 additions & 0 deletions spec/shared/controllers/shared_network_manager_context.rb
Expand Up @@ -47,6 +47,16 @@
:security_groups => [@security_group],
:floating_ip => @floating_ip,
:ext_management_system => @ems)

@load_balancer = FactoryBot.create(:load_balancer)
@load_balancer.network_ports << @network_port = FactoryBot.create("network_port_#{t}".to_sym,
:name => "eth0",
:mac_address => "06:04:25:40:8e:79",
:device => @load_balancer,
:security_groups => [@security_group],
:floating_ip => @floating_ip,
:ext_management_system => @ems)

FactoryBot.create(:cloud_subnet_network_port,
:cloud_subnet => @cloud_subnet,
:network_port => @network_port,
Expand Down

0 comments on commit f10324a

Please sign in to comment.