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:
parent
5ce7e25d15
commit
d7183145ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user