Refactorize Neutron configuration

* Drop plugin config in cloud::network because it's only needed in
 cloud::network::controller
* Drop deprecated parameters

Change-Id: I284402d5135cff61a565b7d33522c622dc8e4c06
This commit is contained in:
Emilien Macchi
2014-11-25 15:28:39 -05:00
parent 0035caea35
commit 6e4f4071aa
10 changed files with 73 additions and 198 deletions

View File

@@ -26,15 +26,10 @@ describe 'cloud::network::metadata' do
rabbit_hosts => ['10.0.0.1'],
rabbit_password => 'secrete',
api_eth => '10.0.0.1',
provider_vlan_ranges => ['physnet1:1000:2999'],
flat_networks => ['public'],
external_bridge => 'br-pub',
verbose => true,
debug => true,
use_syslog => true,
dhcp_lease_duration => '10',
tenant_network_types => ['vxlan'],
type_drivers => ['gre', 'vlan', 'flat', 'vxlan'],
log_facility => 'LOG_LOCAL0' }"
end
@@ -70,16 +65,6 @@ describe 'cloud::network::metadata' do
:dhcp_lease_duration => '10',
:report_interval => '30'
)
is_expected.to contain_class('neutron::plugins::ml2').with(
:type_drivers => ['gre', 'vlan', 'flat', 'vxlan'],
:tenant_network_types => ['vxlan'],
:mechanism_drivers => ['openvswitch','l2population'],
:tunnel_id_ranges => ['1:10000'],
:network_vlan_ranges => ['physnet1:1000:2999'],
:flat_networks => ['public'],
:enable_security_group => true
)
is_expected.not_to contain__neutron_network('public')
end
it 'configure neutron metadata' do