Fix vagrant scripts to add IPv6 correctly
The script did not use the sudo command correctly, thus not really enabling the IPv6 support. Also, Moved the commands to the common script rather than having it duplicated in all the scripts. Change-Id: I66e84d76d905584635d42997f41eaef9d0263d3c
This commit is contained in:
parent
a171ffb9a6
commit
472abf1a58
@ -22,8 +22,4 @@ SERVICE_HOST_NAME=\${HOSTNAME}
|
|||||||
SERVICE_HOST=$ipaddress
|
SERVICE_HOST=$ipaddress
|
||||||
DEVSTACKEOF
|
DEVSTACKEOF
|
||||||
|
|
||||||
# Patch to enable IPv6
|
|
||||||
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
||||||
sudo echo "net.ipv6.conf.all.disable_ipv6 = 0" >> /etc/sysctl.conf
|
|
||||||
|
|
||||||
~/devstack/stack.sh
|
~/devstack/stack.sh
|
||||||
|
@ -16,3 +16,7 @@ fi
|
|||||||
if [ ! -d "dragonflow" ]; then
|
if [ ! -d "dragonflow" ]; then
|
||||||
git clone https://git.openstack.org/openstack/dragonflow.git
|
git clone https://git.openstack.org/openstack/dragonflow.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Patch to enable IPv6
|
||||||
|
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
||||||
|
sudo sh -c 'echo "net.ipv6.conf.all.disable_ipv6 = 0" >> /etc/sysctl.conf'
|
||||||
|
@ -18,8 +18,4 @@ cat << DEVSTACKEOF >> devstack/local.conf
|
|||||||
HOSTNAME=$(hostname)
|
HOSTNAME=$(hostname)
|
||||||
DEVSTACKEOF
|
DEVSTACKEOF
|
||||||
|
|
||||||
# Patch to enable IPv6
|
|
||||||
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
||||||
sudo echo "net.ipv6.conf.all.disable_ipv6 = 0" >> /etc/sysctl.conf
|
|
||||||
|
|
||||||
~/devstack/stack.sh
|
~/devstack/stack.sh
|
||||||
|
@ -23,8 +23,4 @@ SERVICE_HOST_NAME=${HOSTNAME}
|
|||||||
SERVICE_HOST=$ipaddress
|
SERVICE_HOST=$ipaddress
|
||||||
DEVSTACKEOF
|
DEVSTACKEOF
|
||||||
|
|
||||||
# Patch to enable IPv6
|
|
||||||
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
|
|
||||||
sudo echo "net.ipv6.conf.all.disable_ipv6 = 0" >> /etc/sysctl.conf
|
|
||||||
|
|
||||||
~/devstack/stack.sh
|
~/devstack/stack.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user