network: add dhcp_lease_duration param support

Allow the end user to choose the lease duration of DHCP for the VMs.

Feature #364
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
Emilien Macchi
2014-03-17 13:37:37 +01:00
parent ba186f9cd0
commit 8ec39a1f4a
7 changed files with 24 additions and 7 deletions

View File

@@ -32,6 +32,7 @@ describe 'cloud::network::metadata' do
verbose => true,
debug => true,
use_syslog => true,
dhcp_lease_duration => '120',
log_facility => 'LOG_LOCAL0' }"
end
@@ -62,7 +63,8 @@ describe 'cloud::network::metadata' do
:bind_host => '10.0.0.1',
:core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin',
:service_plugins => ['neutron.services.loadbalancer.plugin.LoadBalancerPlugin','neutron.services.metering.metering_plugin.MeteringPlugin','neutron.services.l3_router.l3_router_plugin.L3RouterPlugin'],
:log_dir => false
:log_dir => false,
:dhcp_lease_duration => '120'
)
should contain_class('neutron::agents::ovs').with(
:enable_tunneling => true,