Skip to content

Commit

Permalink
Merge pull request #177 from bodepd/make_vif_driver_configurable
Browse files Browse the repository at this point in the history
Make libvit_vif_driver configurable
  • Loading branch information
bodepd committed Oct 31, 2012
2 parents fd3388c + 2c98693 commit 041142d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/compute/quantum.pp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
class nova::compute::quantum (

$libvirt_vif_driver = 'nova.virt.libvirt.vif.LibvirtOpenVswitchDriver'
){

nova_config {
'libvirt_vif_driver': value => 'nova.virt.libvirt.vif.LibvirtOpenVswitchDriver';
'libvirt_vif_driver': value => $libvirt_vif_driver;
#'libvirt_vif_driver': value => 'nova.virt.libvirt.vif.LibvirtHybirdOVSBridgeDriver';
'libvirt_use_virtio_for_bridges': value => 'True';
}
Expand Down
14 changes: 14 additions & 0 deletions spec/classes/nova_compute_quantum_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require 'spec_helper'
describe 'nova::compute::quantum' do

it { should contain_nova_config('libvirt_use_virtio_for_bridges').with_value('True')}
it { should contain_nova_config('libvirt_vif_driver').with_value('nova.virt.libvirt.vif.LibvirtOpenVswitchDriver')}

context 'when overriding params' do
let :params do
{:libvirt_vif_driver => 'foo' }
end
it { should contain_nova_config('libvirt_vif_driver').with_value('foo')}
end

end

0 comments on commit 041142d

Please sign in to comment.