Skip to content

Commit

Permalink
Merge pull request #12076 from aufi/add_host_link_to_netport
Browse files Browse the repository at this point in the history
Add link to Host to Network Port details page
(cherry picked from commit b404f98)

https://bugzilla.redhat.com/show_bug.cgi?id=1386798
  • Loading branch information
Dan Clarizio authored and chessbyte committed Oct 21, 2016
1 parent 5d60976 commit d51b178
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/helpers/network_port_helper/textual_summary.rb
Expand Up @@ -11,7 +11,7 @@ def textual_group_properties
end

def textual_group_relationships
%i(parent_ems_cloud ems_network cloud_tenant instance cloud_subnets floating_ips)
%i(parent_ems_cloud ems_network cloud_tenant instance cloud_subnets floating_ips host)
end

#
Expand Down Expand Up @@ -65,4 +65,11 @@ def textual_cloud_subnets
def textual_floating_ips
@record.floating_ips
end

def textual_host
return nil unless @record.device_type == "Host"
{:image => "host", :value => @record.device, :link => url_for(:controller => "host",
:action => "show",
:id => @record.device.id)}
end
end

0 comments on commit d51b178

Please sign in to comment.