From b72db6b2d737e48129f06ad63e577a4489b66b77 Mon Sep 17 00:00:00 2001 From: Joseph Richard Date: Fri, 10 Nov 2017 11:31:51 -0500 Subject: [PATCH 8/8] dvr allow base mac address to be configured --- manifests/init.pp | 2 ++ spec/classes/neutron_init_spec.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 4e76091..23ca45f 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -383,6 +383,7 @@ class neutron ( $service_plugins = $::os_service_default, $auth_strategy = 'keystone', $base_mac = $::os_service_default, + $dvr_base_mac = $::os_service_default, $dhcp_lease_duration = $::os_service_default, $host = $::os_service_default, $dns_domain = $::os_service_default, @@ -521,6 +522,7 @@ instead.") 'DEFAULT/auth_strategy': value => $auth_strategy; 'DEFAULT/core_plugin': value => $core_plugin; 'DEFAULT/base_mac': value => $base_mac; + 'DEFAULT/dvr_base_mac': value => $dvr_base_mac; 'DEFAULT/dhcp_lease_duration': value => $dhcp_lease_duration; 'DEFAULT/host': value => $host; 'DEFAULT/dns_domain': value => $dns_domain; diff --git a/spec/classes/neutron_init_spec.rb b/spec/classes/neutron_init_spec.rb index 3854313..b4a53fa 100644 --- a/spec/classes/neutron_init_spec.rb +++ b/spec/classes/neutron_init_spec.rb @@ -140,6 +140,7 @@ describe 'neutron' do is_expected.to contain_neutron_config('DEFAULT/auth_strategy').with_value('keystone') is_expected.to contain_neutron_config('DEFAULT/core_plugin').with_value( params[:core_plugin] ) is_expected.to contain_neutron_config('DEFAULT/base_mac').with_value('') + is_expected.to contain_neutron_config('DEFAULT/dvr_base_mac').with_value('') is_expected.to contain_neutron_config('DEFAULT/dhcp_lease_duration').with_value('') is_expected.to contain_neutron_config('DEFAULT/host').with_value('') is_expected.to contain_neutron_config('DEFAULT/dns_domain').with_value('') -- 1.8.3.1