Skip to content

Commit

Permalink
Reconfigure VM: Add / Remove Network Adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
kruge002 committed Dec 20, 2017
1 parent 5549221 commit e2a1ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/mixins/supports_feature_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions app/models/vm_reconfigure_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e2a1ba2

Please sign in to comment.