From b628d1f34f314a2eb65d68d887401f4ed27e7334 Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Thu, 27 Dec 2018 12:23:17 +0200 Subject: [PATCH] Devstack: Create ml2 config file for FWaaS-V2 FWaaS V2 expects the ml2 config to exist, even though it is not in use for the vmware-nsx plugins. This patch adds this file from teh sample file when stacking with FWaaS v2 Change-Id: I198bfa55319dc622c0a3872f818fe022b622fef7 --- devstack/plugin.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 41d198ddb9..6ac92403e4 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -129,3 +129,13 @@ elif [[ $Q_PLUGIN == 'vmware_nsx_p' ]]; then fi fi fi + +if [[ "$1" == "stack" && "$2" == "post-config" ]]; then + if is_service_enabled q-fwaas-v2; then + # make sure ml2 config exists for FWaaS-v2 + if [ ! -f "/etc/neutron/plugins/ml2/ml2_conf.ini" ]; then + mkdir /etc/neutron/plugins/ml2 + cp $DEST/neutron/etc/neutron/plugins/ml2/ml2_conf.ini.sample /etc/neutron/plugins/ml2/ml2_conf.ini + fi + fi +fi