Skip to content

Commit

Permalink
Merge pull request #289 from andinod/master
Browse files Browse the repository at this point in the history
Adding multiqueue support for Virtio to the stemcell
  • Loading branch information
rkoster authored Oct 24, 2024
2 parents fac235f + 235f926 commit 0d6b3d8
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 0d6b3d8

Please sign in to comment.