Skip to content

Commit

Permalink
add code from PR #289
Browse files Browse the repository at this point in the history
  • Loading branch information
OBoehrer committed Oct 24, 2024
1 parent 826769a commit d810be1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ 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
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
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 d810be1

Please sign in to comment.