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
This commit is contained in:
Adit Sarfaty 2018-12-27 12:23:17 +02:00
parent ee46de95c3
commit b628d1f34f
1 changed files with 10 additions and 0 deletions

View File

@ -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