diff --git a/app/models/physical_rack.rb b/app/models/physical_rack.rb index df6ec75d143..ff1129113cf 100644 --- a/app/models/physical_rack.rb +++ b/app/models/physical_rack.rb @@ -1,4 +1,6 @@ class PhysicalRack < ApplicationRecord + acts_as_miq_taggable + belongs_to :ext_management_system, :foreign_key => :ems_id, :inverse_of => :physical_racks has_many :physical_chassis, :dependent => :nullify, :inverse_of => :physical_rack diff --git a/config/miq_expression.yml b/config/miq_expression.yml index 6233032c01e..8e9fe522ae0 100644 --- a/config/miq_expression.yml +++ b/config/miq_expression.yml @@ -49,6 +49,7 @@ - MiqWorker - OrchestrationStack - OrchestrationTemplate +- PhysicalRack - PhysicalSwitch - PhysicalServer - PolicyEvent diff --git a/db/fixtures/miq_product_features.yml b/db/fixtures/miq_product_features.yml index 288213efce8..244a00b45d7 100644 --- a/db/fixtures/miq_product_features.yml +++ b/db/fixtures/miq_product_features.yml @@ -5848,6 +5848,26 @@ :feature_type: admin :identifier: ems_physical_infra_new +# Physical Racks +- :name: Physical Racks + :description: Everything under Physical Racks + :feature_type: node + :identifier: physical_rack + :children: + - :name: View + :description: View Physical Rack + :feature_type: view + :identifier: physical_rack_view + :children: + - :name: List + :description: Display Lists of Physical Racks + :feature_type: view + :identifier: physical_rack_show_list + - :name: Show + :description: Display Individual Physical Rack + :feature_type: view + :identifier: physical_rack_show + # Physical Chassis - :name: Physical Chassis :description: Everything under Physical Chassis diff --git a/db/fixtures/miq_user_roles.yml b/db/fixtures/miq_user_roles.yml index 0eaa8e577be..23c2bd8c71e 100644 --- a/db/fixtures/miq_user_roles.yml +++ b/db/fixtures/miq_user_roles.yml @@ -66,6 +66,7 @@ - miq_request - miq_template - orchestration_stack + - physical_rack - physical_switch - physical_server - physical_infra_topology @@ -134,6 +135,7 @@ - miq_template_tag - miq_template_timeline - physical_infra_topology_view + - physical_rack_view - physical_switch_view - physical_server_view - policy_log @@ -229,6 +231,7 @@ - miq_template_snapshot_view - miq_template_tag - physical_infra_topology_view + - physical_rack_view - physical_switch_view - physical_server_view - planning @@ -299,9 +302,11 @@ - my_settings_default_views - my_settings_time_profiles - my_settings_visuals + - physical_rack - physical_switch - physical_server - physical_infra_topology + - physical_rack_view - physical_switch_view - physical_server_view - provider_foreman_explorer @@ -378,6 +383,7 @@ - ems_physical_infra_refresh - ems_physical_infra_tag - ems_physical_infra_view + - physical_rack_view - physical_switch_view - physical_server_view - physical_infra_topology_view @@ -591,6 +597,7 @@ - miq_template_tag - miq_template_timeline - physical_infra_topology_view + - physical_rack_view - physical_switch_view - physical_server_view - policy_log @@ -679,6 +686,7 @@ - miq_template_tag - miq_template_timeline - physical_infra_topology_view + - physical_rack_view - physical_switch_view - physical_server_view - resource_pool_show @@ -1186,6 +1194,7 @@ - orchestration_templates_view - persistent_volume_view - physical_infra_topology_view + - physical_rack_view - physical_switch_view - physical_server_view - planning diff --git a/locale/en.yml b/locale/en.yml index eecacfb4744..6d444b32392 100644 --- a/locale/en.yml +++ b/locale/en.yml @@ -860,6 +860,7 @@ en: ManageIQ::Providers::Redhat::InfraManager::Host: Host (Redhat) ManageIQ::Providers::Vmware::InfraManager::Host: Host (Vmware) ManageIQ::Providers::Vmware::InfraManager::HostEsx: Host (Vmware) + ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalRack: Physical Rack (Lenovo) ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalServer: Physical Server (Lenovo) ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalSwitch: Physical Switch (Lenovo) MeteringContainerImage: Metering for Image