From e2a1ba25c0d8b24606bd4f89ffdb8235dc776b28 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 20 Dec 2017 14:18:01 +0100 Subject: [PATCH] Reconfigure VM: Add / Remove Network Adapters More info: https://github.com/ManageIQ/manageiq-ui-classic/issues/3119 --- app/models/mixins/supports_feature_mixin.rb | 1 + app/models/vm_reconfigure_task.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/models/mixins/supports_feature_mixin.rb b/app/models/mixins/supports_feature_mixin.rb index 4b701a0bd699..5a6c8074887b 100644 --- a/app/models/mixins/supports_feature_mixin.rb +++ b/app/models/mixins/supports_feature_mixin.rb @@ -106,6 +106,7 @@ module SupportsFeatureMixin :reboot_guest => 'Reboot Guest Operation', :reconfigure => 'Reconfiguration', :reconfigure_disks => 'Reconfigure Virtual Machines Disks', + :reconfigure_network_adapters => 'Reconfigure Network Adapters', :refresh_network_interfaces => 'Refresh Network Interfaces for a Host', :refresh_new_target => 'Refresh non-existing record', :regions => 'Regions of a Provider', diff --git a/app/models/vm_reconfigure_task.rb b/app/models/vm_reconfigure_task.rb index a57c41cedab3..e6246e36d991 100644 --- a/app/models/vm_reconfigure_task.rb +++ b/app/models/vm_reconfigure_task.rb @@ -32,6 +32,8 @@ def self.get_description(req_obj) new_settings << "Total Processors: #{req_obj.options[:number_of_cpus].to_i}" unless req_obj.options[:number_of_cpus].blank? new_settings << "Add Disks: #{req_obj.options[:disk_add].length}" unless req_obj.options[:disk_add].blank? new_settings << "Remove Disks: #{req_obj.options[:disk_remove].length}" unless req_obj.options[:disk_remove].blank? + new_settings << "Add Network Adapters: #{req_obj.options[:network_adapter_add].length}" unless req_obj.options[:network_adapter_add].blank? + new_settings << "Remove Network Adapters: #{req_obj.options[:network_adapter_remove].length}" unless req_obj.options[:network_adapter_remove].blank? "#{request_class::TASK_DESCRIPTION} for: #{name} - #{new_settings.join(", ")}" end