Skip to content

Commit

Permalink
Adding new property for the stemcell creation to incorporate the mult…
Browse files Browse the repository at this point in the history
…iqueue option for virtio
  • Loading branch information
andinod committed Oct 14, 2024
1 parent e150880 commit 235f926
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def self.normalize_image_properties(properties)
image_properties = {}
image_options = %w[version os_type os_distro architecture auto_disk_config
hw_vif_model hw_disk_bus_model hw_scsi_model hw_disk_bus
hypervisor_type vmware_adaptertype vmware_disktype
vmware_linked_clone vmware_ostype]
hw_vif_multiqueue_enabled hypervisor_type vmware_adaptertype
vmware_disktype vmware_linked_clone vmware_ostype]
image_options.reject { |image_option| properties[property_option_for_image_option(image_option)].nil? }.each do |image_option|
image_properties[image_option.to_sym] = properties[property_option_for_image_option(image_option)].to_s
end
Expand Down
10 changes: 10 additions & 0 deletions src/bosh_openstack_cpi/spec/unit/stemcell_creator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@
)
end

it 'supports virtio multiqueue network' do
properties = {
'hw_vif_multiqueue_enabled' => true,
}

expect(subject.normalize_image_properties(properties)).to include(
:hw_vif_multiqueue_enabled,
)
end

it 'maps hypervisor key to hypervisor_type' do
properties = {
'hypervisor' => 'kvm',
Expand Down

0 comments on commit 235f926

Please sign in to comment.