diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 873ac91ec40..cd16fe94578 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -169,7 +169,8 @@ def controller_to_model "OsProcess" => "processes", "scan_histories" => "scan_histories", "based_volumes" => "based_volumes", - "PersistentVolume" => "persistent_volumes" + "PersistentVolume" => "persistent_volumes", + "PhysicalSwitch" => "physical_switches" }.freeze def model_to_report_data diff --git a/app/helpers/ems_physical_infra_helper/textual_summary.rb b/app/helpers/ems_physical_infra_helper/textual_summary.rb index 61a7083f4fd..12444b1e526 100644 --- a/app/helpers/ems_physical_infra_helper/textual_summary.rb +++ b/app/helpers/ems_physical_infra_helper/textual_summary.rb @@ -58,7 +58,7 @@ def textual_physical_racks end def textual_physical_switches - textual_link(@record.physical_switches) + textual_link(@record.physical_switches, :as => PhysicalSwitch) end def textual_physical_servers diff --git a/app/views/layouts/listnav/_ems_physical_infra.html.haml b/app/views/layouts/listnav/_ems_physical_infra.html.haml index 219cc7ffb20..4bd346ad749 100644 --- a/app/views/layouts/listnav/_ems_physical_infra.html.haml +++ b/app/views/layouts/listnav/_ems_physical_infra.html.haml @@ -15,6 +15,10 @@ = miq_accordion_panel(_("Relationships"), false, "ems_rel") do %ul.nav.nav-pills.nav-stacked %li + = li_link(:count => @record.number_of(:physical_switches), + :text => _('Physical Switches'), + :record => @record, + :display => 'physical_switches') = li_link(:count => @record.number_of(:physical_servers), :tables => 'physical_servers', :record => @record,