Skip to content

Commit

Permalink
Config file to represent Rack in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
felipedf committed May 17, 2018
1 parent 9d5ed08 commit 8e3d410
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/physical_rack.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions config/miq_expression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- MiqWorker
- OrchestrationStack
- OrchestrationTemplate
- PhysicalRack
- PhysicalSwitch
- PhysicalServer
- PolicyEvent
Expand Down
20 changes: 20 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions db/fixtures/miq_user_roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
- miq_request
- miq_template
- orchestration_stack
- physical_rack
- physical_switch
- physical_server
- physical_infra_topology
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -1186,6 +1194,7 @@
- orchestration_templates_view
- persistent_volume_view
- physical_infra_topology_view
- physical_rack_view
- physical_switch_view
- physical_server_view
- planning
Expand Down
1 change: 1 addition & 0 deletions locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e3d410

Please sign in to comment.