Dockerfile: Create neutron configurations

If the Neutron configuration files does not exist in the
docker image, use Dragonflow's configuration files as neutron's
configuration files.

Related-Bug: #1778007

Change-Id: I167a290358427bd94dba9c6db6f02a153b5ca734
This commit is contained in:
Lihi Wishnitzer 2018-07-12 14:17:33 +03:00
parent 5ce7e25d15
commit d7183145ac
1 changed files with 8 additions and 0 deletions

View File

@ -42,6 +42,14 @@ if [ ! -e /etc/dragonflow/dragonflow_datapath_layout.yaml ]; then
cp etc/dragonflow_datapath_layout.yaml /etc/dragonflow
fi
if [ ! -e /etc/neutron ]; then
ln -s /etc/dragonflow /etc/neutron
fi
if [ ! -e /etc/neutron/neutron.conf ]; then
touch /etc/neutron/neutron.conf
fi
if [ -n "$DB_INIT" ]; then
df-db init
fi