Remove BASE var from vxlan_networking.sh
The /opt/stack variable was being used in a single place and that use can be easily substituted by the tripleo_root variable, which is the place were the repositories are being downloaded. If for some reason tripleo_root directory does not end up in /new then an error appears as it won't find /opt/stack/new/devstack/functions-common. Change-Id: Ibff5e51c0b7a06b9915e222712738d6ca93a366f
This commit is contained in:
parent
a2668a3277
commit
c072857c91
@ -17,13 +17,6 @@ set -eux
|
||||
## Prepare Your Environment
|
||||
## ------------------------
|
||||
|
||||
## * Set the environment variables for the script to function
|
||||
## ::
|
||||
|
||||
# TODO: Figure out where to ln -sf $TRIPLEO_ROOT $BASE/new
|
||||
BASE=${BASE:-{{ tripleo_root }}}
|
||||
export BASE=${BASE/\/new}
|
||||
|
||||
## * Source tripleo-ci's deploy.env environment variables (if available)
|
||||
## ::
|
||||
|
||||
@ -88,7 +81,7 @@ function ovs_vxlan_bridge {
|
||||
echo "Unsupported platform, can't determine openvswitch service"
|
||||
exit 1
|
||||
fi
|
||||
local install_ovs_deps="source $BASE/new/devstack/functions-common; \
|
||||
local install_ovs_deps="source {{ tripleo_root }}/devstack/functions-common; \
|
||||
install_package ${ovs_package}; \
|
||||
restart_service ${ovs_service}"
|
||||
local mtu=1450
|
||||
|
Loading…
Reference in New Issue
Block a user