88a6c92dc7
Move networking-ovn/vagrant into neutron/tools/ovn_vagrant Also added two sample local.conf files for a DB-only and VTEP nodes. Co-Authored-By: zhangyanxian <zhangyanxianmail@163.com> Co-Authored-By: chen-li <shchenli@cn.ibm.com> Co-Authored-By: Russell Bryant <rbryant@redhat.com> Co-Authored-By: Kyle Mestery <mestery@mestery.com Co-Authored-By: Miguel Angel Ajo <majopela@redhat.com> Co-Authored-By: Richard Theis <rtheis@us.ibm.com> Co-Authored-By: JUNJIE NAN <nanjj@cn.ibm.com> Co-Authored-By: Flavio Fernandes <flavio@flaviof.com> Co-Authored-By: John Kasperski <jckasper@us.ibm.com> Co-Authored-By: Matthew Kassawara <mkassawara@gmail.com> Co-Authored-By: venkatamahesh <venkatamaheshkotha@gmail.com> Co-Authored-By: Tong Li <litong01@us.ibm.com> Co-Authored-By: venkata anil <anilvenkata@redhat.com> Co-Authored-By: Vu Cong Tuan <tuanvc@vn.fujitsu.com> Co-Authored-By: RYAN D. MOATS <rmoats@us.ibm.com> Change-Id: I12966d5548a60b46edd5c84ee0035eb11671fd8c Partially-Implements: blueprint neutron-ovn-merge
33 lines
806 B
Bash
33 lines
806 B
Bash
#!/usr/bin/env bash
|
|
OVN_DB_IP=$2
|
|
|
|
cp neutron/devstack/ovn-vtep-local.conf.sample devstack/local.conf
|
|
if [ "$1" != "" ]; then
|
|
sed -i -e 's/<IP address of host running everything else>/'$1'/g' devstack/local.conf
|
|
fi
|
|
|
|
# Get the IP address
|
|
if ip a | grep enp0 ; then
|
|
ipaddress=$(ip -4 addr show enp0s8 | grep -oP "(?<=inet ).*(?=/)")
|
|
else
|
|
ipaddress=$(ip -4 addr show eth1 | grep -oP "(?<=inet ).*(?=/)")
|
|
fi
|
|
|
|
# Adjust some things in local.conf
|
|
cat << DEVSTACKEOF >> devstack/local.conf
|
|
|
|
# Set this to the address of the main DevStack host running the rest of the
|
|
# OpenStack services.
|
|
Q_HOST=$1
|
|
HOST_IP=$ipaddress
|
|
HOSTNAME=$(hostname)
|
|
|
|
OVN_SB_REMOTE=tcp:$OVN_DB_IP:6642
|
|
OVN_NB_REMOTE=tcp:$OVN_DB_IP:6641
|
|
|
|
# Enable logging to files.
|
|
LOGFILE=/opt/stack/log/stack.sh.log
|
|
DEVSTACKEOF
|
|
|
|
devstack/stack.sh
|