diff --git a/app/models/physical_server/operations/power.rb b/app/models/physical_server/operations/power.rb index 7bdc86712e7..5085e81b456 100644 --- a/app/models/physical_server/operations/power.rb +++ b/app/models/physical_server/operations/power.rb @@ -7,10 +7,26 @@ def power_off change_state(:power_off) end + def power_off_now + change_state(:power_off_now) + end + def restart change_state(:restart) end + def restart_now + change_state(:restart_now) + end + + def restart_to_sys_setup + change_state(:restart_to_sys_setup) + end + + def restart_mgmt_controller + change_state(:restart_mgmt_controller) + end + private def change_state(verb) diff --git a/db/fixtures/miq_product_features.yml b/db/fixtures/miq_product_features.yml index 38c327562b5..6a10e947b4a 100644 --- a/db/fixtures/miq_product_features.yml +++ b/db/fixtures/miq_product_features.yml @@ -6256,10 +6256,26 @@ :description: Turn Off Server :feature_type: control :identifier: physical_server_power_off + - :name: Turn Off Server Immediately + :description: Turn Off Server Immediately + :feature_type: control + :identifier: physical_server_power_off_now - :name: Restart Server :description: Restart Server :feature_type: control :identifier: physical_server_restart + - :name: Restart Server Immediately + :description: Restart Server Immediately + :feature_type: control + :identifier: physical_server_restart_now + - :name: Restart Server to System Setup + :description: Restart Server to System Setup + :feature_type: control + :identifier: physical_server_restart_to_sys_setup + - :name: Restart Management Controller + :description: Restart Management Controller + :feature_type: control + :identifier: physical_server_restart_mgmt_controller - :name: Blink LED :description: Blink Loc LED :feature_type: control