Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding roles, filters and configurations for Physical Switches support #17216

Merged
merged 1 commit into from
May 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
- PhysicalSwitch
- PhysicalServer
- PolicyEvent
- ResourcePool
Expand Down
29 changes: 29 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5848,6 +5848,35 @@
:feature_type: admin
:identifier: ems_physical_infra_new

# Physical Switches
- :name: Physical Switches
:description: Everything under Physical Switches
:feature_type: node
:identifier: physical_switch
:children:
- :name: View
:description: View Physical Switch
:feature_type: view
:identifier: physical_switch_view
:children:
- :name: List
:description: Display Lists of Physical Switches
:feature_type: view
:identifier: physical_switch_show_list
- :name: Show
:description: Display Individual Physical Switch
:feature_type: view
:identifier: physical_switch_show
- :name: Operate
:description: Perform Operations on Physical Switches
:feature_type: control
:identifier: physical_switch_control
:children:
- :name: Refresh
:description: Refresh relationships and power states for all items related to Physical Switches / Nodes
:feature_type: control
:identifier: physical_switch_refresh

# Physical Servers
- :name: Physical Servers
:description: Everything under Physical Servers
Expand Down
21 changes: 21 additions & 0 deletions db/fixtures/miq_searches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,27 @@
value: "waiting"
search_type: default
db: Container
- attributes:
name: default_Status / Running
description: Status / Running
filter: !ruby/object:MiqExpression
exp:
INCLUDES:
field: PhysicalSwitch-power_state
value: "on"
search_type: default
db: PhysicalSwitch
- attributes:
name: default_Status / Stopped
description: Status / Stopped
filter: !ruby/object:MiqExpression
exp:
not:
INCLUDES:
field: PhysicalSwitch-power_state
value: "on"
search_type: default
db: PhysicalSwitch
- attributes:
name: default_Over Sized
description: Over Sized
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_switch
- physical_server
- physical_infra_topology
- planning
Expand Down Expand Up @@ -133,6 +134,7 @@
- miq_template_tag
- miq_template_timeline
- physical_infra_topology_view
- physical_switch_view
- physical_server_view
- policy_log
- policy_simulation
Expand Down Expand Up @@ -227,6 +229,7 @@
- miq_template_snapshot_view
- miq_template_tag
- physical_infra_topology_view
- physical_switch_view
- physical_server_view
- planning
- policy_log
Expand Down Expand Up @@ -296,8 +299,10 @@
- my_settings_default_views
- my_settings_time_profiles
- my_settings_visuals
- physical_switch
- physical_server
- physical_infra_topology
- physical_switch_view
- physical_server_view
- provider_foreman_explorer
- vm_clone
Expand Down Expand Up @@ -373,6 +378,7 @@
- ems_physical_infra_refresh
- ems_physical_infra_tag
- ems_physical_infra_view
- physical_switch_view
- physical_server_view
- physical_infra_topology_view
- host_new
Expand Down Expand Up @@ -585,6 +591,7 @@
- miq_template_tag
- miq_template_timeline
- physical_infra_topology_view
- physical_switch_view
- physical_server_view
- policy_log
- policy_simulation
Expand Down Expand Up @@ -672,6 +679,7 @@
- miq_template_tag
- miq_template_timeline
- physical_infra_topology_view
- physical_switch_view
- physical_server_view
- resource_pool_show
- resource_pool_show_list
Expand Down Expand Up @@ -1178,6 +1186,7 @@
- orchestration_templates_view
- persistent_volume_view
- physical_infra_topology_view
- physical_switch_view
- physical_server_view
- planning
- policy_log
Expand Down
3 changes: 2 additions & 1 deletion locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ en:
ManageIQ::Providers::InfraManager::Vm: Virtual Machine
ManageIQ::Providers::InfraManager::Template: Template
ManageIQ::Providers::NetworkManager: Network Manager
ManageIQ::Providers::PhysicalInfraManager: Physical Infrastructure Provider
ManageIQ::Providers::PhysicalInfraManager: Physical Infrastructure Provider
ManageIQ::Providers::Openstack::InfraManager: Infrastructure Provider (OpenStack)
ManageIQ::Providers::Microsoft::InfraManager: Infrastructure Provider (Microsoft)
ManageIQ::Providers::Redhat::InfraManager: Infrastructure Provider (Red Hat)
Expand Down Expand Up @@ -861,6 +861,7 @@ en:
ManageIQ::Providers::Vmware::InfraManager::Host: Host (Vmware)
ManageIQ::Providers::Vmware::InfraManager::HostEsx: Host (Vmware)
ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalServer: Physical Server (Lenovo)
ManageIQ::Providers::Lenovo::PhysicalInfraManager::PhysicalSwitch: Physical Switch (Lenovo)
MeteringContainerImage: Metering for Image
MeteringContainerProject: Metering for Project
MeteringVm: Metering for VM
Expand Down