![Swapnil Kulkarni](/assets/img/avatar_default.png)
- Updated the required variables to be sorted so that they are better visible one on each line - Removed variable defaults from each service scripts and added them to tools/genenv file which holds all default values Change-Id: Ia7b1b08ba3f963b46b81434ce84f476d56890a93 Closes-Bug: #1476494 Closes-Bug: #1467652
27 lines
682 B
Bash
Executable File
27 lines
682 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
. /opt/kolla/config-neutron.sh
|
|
|
|
check_required_vars NEUTRON_FLAT_NETWORK_INTERFACE \
|
|
NEUTRON_FLAT_NETWORK_NAME \
|
|
PUBLIC_IP
|
|
|
|
cfg=/etc/neutron/plugins/ml2/ml2_conf.ini
|
|
|
|
# Configure ml2_conf.ini
|
|
if [[ ${TYPE_DRIVERS} =~ vxlan ]]; then
|
|
crudini --set $cfg \
|
|
vxlan \
|
|
local_ip \
|
|
"${PUBLIC_IP}"
|
|
fi
|
|
|
|
crudini --set $cfg \
|
|
linux_bridge \
|
|
physical_interface_mappings \
|
|
"${NEUTRON_FLAT_NETWORK_NAME}:${NEUTRON_FLAT_NETWORK_INTERFACE}"
|
|
|
|
exec /usr/bin/neutron-linuxbridge-agent --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini --config-dir /etc/neutron
|