From d7183145ac2e9dd3f62688f34573c833498e38d9 Mon Sep 17 00:00:00 2001 From: Lihi Wishnitzer Date: Thu, 12 Jul 2018 14:17:33 +0300 Subject: [PATCH] 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 --- tools/run_dragonflow.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/run_dragonflow.sh b/tools/run_dragonflow.sh index 8f5bc6896..a353e7aed 100755 --- a/tools/run_dragonflow.sh +++ b/tools/run_dragonflow.sh @@ -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