Merge "Adjust service config file for networking-l2gw"
This commit is contained in:
@@ -4,7 +4,7 @@ Puppet::Type.type(:neutron_l2gw_service_config).provide(
|
||||
) do
|
||||
|
||||
def self.file_path
|
||||
'/etc/neutron/l2gw_plugin.ini'
|
||||
'/etc/neutron/networking_l2gw.conf'
|
||||
end
|
||||
|
||||
end
|
||||
|
@@ -3,7 +3,7 @@ Puppet::Type.newtype(:neutron_l2gw_service_config) do
|
||||
ensurable
|
||||
|
||||
newparam(:name, :namevar => true) do
|
||||
desc 'Section/setting name to manage from l2gw_plugin.ini'
|
||||
desc 'Section/setting name to manage from networking_l2gw.conf'
|
||||
newvalues(/\S+\/\S+/)
|
||||
end
|
||||
|
||||
|
@@ -52,7 +52,7 @@
|
||||
# (optional) Manage configuration of l2gateway_agent.ini
|
||||
#
|
||||
# [*l2gw_service_config*]
|
||||
# (optional) Manage configuration of l2gw_plugin.ini
|
||||
# (optional) Manage configuration of networking_l2gw.conf
|
||||
#
|
||||
# [*sfc_service_config*]
|
||||
# (optional) Manage configuration of networking-sfc.conf
|
||||
|
@@ -8,7 +8,7 @@ describe 'basic neutron_config resource' do
|
||||
'/etc/neutron/l3_agent.ini',
|
||||
'/etc/neutron/metadata_agent.ini',
|
||||
'/etc/neutron/metering_agent.ini',
|
||||
'/etc/neutron/l2gw_plugin.ini',
|
||||
'/etc/neutron/networking_l2gw.conf',
|
||||
'/etc/neutron/l2gateway_agent.ini',
|
||||
'/etc/neutron/plugins/ml2/ml2_conf.ini',
|
||||
'/etc/neutron/fwaas_driver.ini',
|
||||
@@ -56,7 +56,7 @@ describe 'basic neutron_config resource' do
|
||||
'/etc/neutron/l3_agent.ini',
|
||||
'/etc/neutron/metadata_agent.ini',
|
||||
'/etc/neutron/metering_agent.ini',
|
||||
'/etc/neutron/l2gw_plugin.ini',
|
||||
'/etc/neutron/networking_l2gw.conf',
|
||||
'/etc/neutron/l2gateway_agent.ini',
|
||||
'/etc/neutron/plugins/ml2/ml2_conf.ini',
|
||||
'/etc/neutron/fwaas_driver.ini',
|
||||
|
@@ -49,7 +49,7 @@ describe 'neutron::agents::l2gw' do
|
||||
)
|
||||
end
|
||||
|
||||
it 'configures l2gw_plugin.ini' do
|
||||
it 'configures networking_l2gw.conf' do
|
||||
should contain_neutron_l2gw_agent_config('DEFAULT/debug').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l2gw_agent_config('ovsdb/enable_manager').with_value(p[:enable_manager])
|
||||
should contain_neutron_l2gw_agent_config('ovsdb/manager_table_listening_port').with_value(p[:manager_table_listening_port])
|
||||
|
@@ -31,7 +31,7 @@ describe 'neutron::services::l2gw' do
|
||||
)
|
||||
end
|
||||
|
||||
it 'configures l2gw_plugin.ini' do
|
||||
it 'configures networking_l2gw.conf' do
|
||||
should contain_neutron_l2gw_service_config('DEFAULT/default_interface_name').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l2gw_service_config('DEFAULT/default_device_name').with_value('<SERVICE DEFAULT>')
|
||||
should contain_neutron_l2gw_service_config('DEFAULT/quota_l2_gateway').with_value('<SERVICE DEFAULT>')
|
||||
@@ -60,7 +60,7 @@ describe 'neutron::services::l2gw' do
|
||||
})
|
||||
end
|
||||
|
||||
it 'configures l2gw_plugin.ini' do
|
||||
it 'configures networking_l2gw.conf' do
|
||||
should contain_neutron_l2gw_service_config('DEFAULT/default_interface_name').with_value('foo')
|
||||
end
|
||||
end
|
||||
@@ -94,7 +94,7 @@ describe 'neutron::services::l2gw' do
|
||||
}
|
||||
end
|
||||
|
||||
it 'configures multiple service providers in l2gw_plugin.ini' do
|
||||
it 'configures multiple service providers in networking_l2gw.conf' do
|
||||
should contain_neutron_l2gw_service_config(
|
||||
'service_providers/service_provider'
|
||||
).with_value(['provider1', 'provider2'])
|
||||
|
@@ -14,7 +14,7 @@ describe provider_class do
|
||||
provider = provider_class.new(resource)
|
||||
expect(provider.section).to eq('DEFAULT')
|
||||
expect(provider.setting).to eq('foo')
|
||||
expect(provider.file_path).to eq('/etc/neutron/l2gw_plugin.ini')
|
||||
expect(provider.file_path).to eq('/etc/neutron/networking_l2gw.conf')
|
||||
end
|
||||
|
||||
it 'should allow setting to be set explicitly' do
|
||||
@@ -27,7 +27,7 @@ describe provider_class do
|
||||
provider = provider_class.new(resource)
|
||||
expect(provider.section).to eq('dude')
|
||||
expect(provider.setting).to eq('foo')
|
||||
expect(provider.file_path).to eq('/etc/neutron/l2gw_plugin.ini')
|
||||
expect(provider.file_path).to eq('/etc/neutron/networking_l2gw.conf')
|
||||
end
|
||||
|
||||
it 'should ensure absent when <SERVICE DEFAULT> is specified as a value' do
|
||||
|
Reference in New Issue
Block a user