From 83e1e41922aecee4fa49dd20cce252ab9d3ee169 Mon Sep 17 00:00:00 2001 From: Michal Adamczyk Date: Wed, 21 Dec 2016 02:51:33 +0100 Subject: [PATCH] Xenserver patch As OpenStack + XenServer deployment is not that common as KVM. This patch contains class parameter update to allow configure OpenStack with XenServer more easily. Deployment guides for OpenStack + XenServer can be found here: https://www.citrix.com/blogs/2015/11/30/integrating-xenserver-rdo-and-neutron/ http://openstack-xenserver.readthedocs.io/en/latest/ Change-Id: I3e316f36527f50745e2b29040f856423ccd1af45 --- manifests/agents/dhcp.pp | 6 ++++++ spec/classes/neutron_agents_dhcp_spec.rb | 1 + 2 files changed, 7 insertions(+) diff --git a/manifests/agents/dhcp.pp b/manifests/agents/dhcp.pp index 8b2dd4729..0f5f26f1e 100644 --- a/manifests/agents/dhcp.pp +++ b/manifests/agents/dhcp.pp @@ -74,6 +74,10 @@ # Neutron will only schedule dhcp on the agent based on availability zone # Defaults to $::os_service_default # +# [*ovs_integration_bridge*] +# (optional) Name of Open vSwitch bridge to use +# Defaults to $::os_service_default +# # === Deprecated Parameters # # [*dhcp_domain*] @@ -98,6 +102,7 @@ class neutron::agents::dhcp ( $dhcp_broadcast_reply = $::os_service_default, $purge_config = false, $availability_zone = $::os_service_default, + $ovs_integration_bridge = $::os_service_default, # DEPRECATED PARAMETERS $dhcp_domain = $::os_service_default, ) { @@ -133,6 +138,7 @@ class neutron::agents::dhcp ( 'DEFAULT/dhcp_broadcast_reply': value => $dhcp_broadcast_reply; 'DEFAULT/dnsmasq_config_file': value => $dnsmasq_config_file; 'DEFAULT/dnsmasq_dns_servers': value => join(any2array($dnsmasq_dns_servers), ','); + 'DEFAULT/ovs_integration_bridge': value => $ovs_integration_bridge; 'AGENT/availability_zone': value => $availability_zone; } diff --git a/spec/classes/neutron_agents_dhcp_spec.rb b/spec/classes/neutron_agents_dhcp_spec.rb index e01e3b6ca..ab45faa66 100644 --- a/spec/classes/neutron_agents_dhcp_spec.rb +++ b/spec/classes/neutron_agents_dhcp_spec.rb @@ -47,6 +47,7 @@ describe 'neutron::agents::dhcp' do is_expected.to contain_neutron_dhcp_agent_config('DEFAULT/force_metadata').with_value(''); is_expected.to contain_neutron_dhcp_agent_config('DEFAULT/enable_metadata_network').with_value(p[:enable_metadata_network]); is_expected.to contain_neutron_dhcp_agent_config('DEFAULT/dhcp_broadcast_reply').with_value(''); + is_expected.to contain_neutron_dhcp_agent_config('DEFAULT/ovs_integration_bridge').with_value(''); is_expected.to contain_neutron_dhcp_agent_config('AGENT/availability_zone').with_value(''); end