Remove check for correct core_plugin when using ml2.
This checks fails, because $::neutron::core_plugin is not available in the context of ml2.pp. Change-Id: I96c11c5a57c530f72e0e71447831b8219c12a685
This commit is contained in:
@@ -159,10 +159,6 @@ class neutron::plugins::ml2 (
|
||||
}
|
||||
}
|
||||
|
||||
if $::neutron::core_plugin != 'neutron.plugins.ml2.plugin.Ml2Plugin' {
|
||||
fail('ml2 plugin should be the core_plugin in neutron.conf')
|
||||
}
|
||||
|
||||
if $enable_security_group {
|
||||
neutron_plugin_ml2 {
|
||||
'securitygroup/firewall_driver': value => $enable_security_group;
|
||||
|
@@ -73,17 +73,6 @@ describe 'neutron::plugins::ml2' do
|
||||
|
||||
end
|
||||
|
||||
context 'configure ml2 with wrong core_plugin configured' do
|
||||
let :pre_condition do
|
||||
"class { 'neutron':
|
||||
rabbit_password => 'passw0rd',
|
||||
core_plugin => 'foo' }"
|
||||
end
|
||||
it 'should fails to configure ml2 because core_plugin should contain ML2 class' do
|
||||
expect { subject }.to raise_error(Puppet::Error, /ml2 plugin should be the core_plugin in neutron.conf/)
|
||||
end
|
||||
end
|
||||
|
||||
it 'configures ovs plugin' do
|
||||
should_not contain_neutron_plugin_ovs('agent/l2_population').with('value' => true)
|
||||
end
|
||||
|
Reference in New Issue
Block a user