Skip to content

Commit

Permalink
Adding roles, filters and configurations for Physical Switches support
Browse files Browse the repository at this point in the history
  • Loading branch information
saulotoledo committed Mar 28, 2018
1 parent 1b33d90 commit 75699f9
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
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
20 changes: 20 additions & 0 deletions db/fixtures/miq_product_features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5844,6 +5844,26 @@
: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

# 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

0 comments on commit 75699f9

Please sign in to comment.