Changed default for core_plugin to ml2

The 'openvswitch' plugin does not exist since Juno. Also, changed how we
set core_plugin for ML2, using stevedore name instead of import path.

Change-Id: Ifb79ee2e648a5c8ac1defbdb86adca16d0f526ad
This commit is contained in:
Ihar Hrachyshka 2016-12-03 03:50:00 +00:00
parent cbe9fd1207
commit 1b7a253e09
16 changed files with 23 additions and 23 deletions

View File

@ -105,11 +105,11 @@ The `neutron_config` provider is a children of the ini_setting provider. It allo
```puppet ```puppet
neutron_config { 'DEFAULT/core_plugin' : neutron_config { 'DEFAULT/core_plugin' :
value => openvswitch, value => ml2,
} }
``` ```
This will write `core_plugin=openvswitch` in the `[DEFAULT]` section. This will write `core_plugin=ml2` in the `[DEFAULT]` section.
##### name ##### name

View File

@ -27,14 +27,14 @@
# #
# [*core_plugin*] # [*core_plugin*]
# (optional) Neutron plugin provider # (optional) Neutron plugin provider
# Defaults to openvswitch # Defaults to ml2
# Could be bigswitch, brocade, cisco, embrane, hyperv, linuxbridge, midonet, # Could be bigswitch, brocade, cisco, embrane, hyperv, midonet,
# ml2, mlnx, nec, nicira, plumgrid, ryu, nuage, opencontrail (full path) # ml2, mlnx, nec, nicira, plumgrid, ryu, nuage, opencontrail
# #
# Example for opencontrail: # Example for nuage:
# #
# class {'neutron' : # class {'neutron' :
# core_plugin => 'neutron.plugins.opencontrail.contrail_plugin:NeutronPluginContrailCoreV2' # core_plugin => 'nuage'
# } # }
# #
# [*service_plugins*] # [*service_plugins*]
@ -381,7 +381,7 @@ class neutron (
$debug = undef, $debug = undef,
$bind_host = $::os_service_default, $bind_host = $::os_service_default,
$bind_port = $::os_service_default, $bind_port = $::os_service_default,
$core_plugin = 'openvswitch', $core_plugin = 'ml2',
$service_plugins = $::os_service_default, $service_plugins = $::os_service_default,
$auth_strategy = 'keystone', $auth_strategy = 'keystone',
$base_mac = $::os_service_default, $base_mac = $::os_service_default,

View File

@ -4,7 +4,7 @@ describe 'neutron' do
let :params do let :params do
{ :package_ensure => 'present', { :package_ensure => 'present',
:core_plugin => 'linuxbridge', :core_plugin => 'ml2',
:auth_strategy => 'keystone', :auth_strategy => 'keystone',
:rabbit_password => 'guest', :rabbit_password => 'guest',
:log_dir => '/var/log/neutron', :log_dir => '/var/log/neutron',

View File

@ -28,7 +28,7 @@ describe 'neutron::plugins::ml2::arista::l3' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -28,7 +28,7 @@ describe 'neutron::plugins::ml2::arista' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::bigswitch::restproxy' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :required_params do let :required_params do

View File

@ -9,7 +9,7 @@ describe 'neutron::plugins::ml2::bigswitch' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::cisco::nexus1000v' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::cisco::nexus' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -9,7 +9,7 @@ describe 'neutron::plugins::ml2::cisco' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::cisco::type_nexus_vxlan' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::cisco::ucsm' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -13,7 +13,7 @@ describe 'neutron::plugins::ml2::midonet' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -9,7 +9,7 @@ describe 'neutron::plugins::ml2::opendaylight' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do

View File

@ -25,7 +25,7 @@ describe 'neutron::plugins::ml2' do
let :pre_condition do let :pre_condition do
"class { 'neutron': "class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do
@ -61,7 +61,7 @@ describe 'neutron::plugins::ml2' do
it { is_expected.to contain_class('neutron::params') } it { is_expected.to contain_class('neutron::params') }
it 'configures neutron.conf' do it 'configures neutron.conf' do
is_expected.to contain_neutron_config('DEFAULT/core_plugin').with_value('neutron.plugins.ml2.plugin.Ml2Plugin') is_expected.to contain_neutron_config('DEFAULT/core_plugin').with_value('ml2')
end end
it 'passes purge to resource' do it 'passes purge to resource' do

View File

@ -9,7 +9,7 @@ describe 'neutron::plugins::ovs::opendaylight' do
class { 'neutron::server': } class { 'neutron::server': }
class { 'neutron': class { 'neutron':
rabbit_password => 'passw0rd', rabbit_password => 'passw0rd',
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }" core_plugin => 'ml2' }"
end end
let :default_params do let :default_params do