#!/usr/bin/env bash
cp /dragonflow/doc/source/single-node-conf/etcd_local_controller.conf ~/devstack/local.conf

# Get the IP address
ipaddress=$(ifconfig eth1 2>/dev/null|awk '/inet addr:/ {split($2,a,":"); print a[2]}')

sed -i -e "$SED_SCRIPT" devstack/local.conf

# Adjust some things in local.conf
cat << DEVSTACKEOF >> devstack/local.conf

# Adjust this in case we're running on a cloud which may use 10.0.0.x
# for VM IP addresses
NETWORK_GATEWAY=10.100.100.100
FIXED_RANGE=10.100.100.0/24

HOST_IP=$ipaddress

# Good to set these
HOSTNAME=$(hostname)
SERVICE_HOST_NAME=\${HOSTNAME}
SERVICE_HOST=$ipaddress
DEVSTACKEOF

~/devstack/stack.sh

#!/usr/bin/env bash
cp /dragonflow/doc/source/single-node-conf/etcd_local_controller.conf ~/devstack/local.conf

# Get the IP address
ipaddress=$(ifconfig eth1 2>/dev/null|awk '/inet addr:/ {split($2,a,":"); print a[2]}')

# Adjust some things in local.conf
cat << DEVSTACKEOF >> devstack/local.conf

# Adjust this in case we're running on a cloud which may use 10.0.0.x
# for VM IP addresses
NETWORK_GATEWAY=10.100.100.100
FIXED_RANGE=10.100.100.0/24

HOST_IP=$ipaddress

# Good to set these
HOSTNAME=$(hostname)
SERVICE_HOST_NAME=\${HOSTNAME}
SERVICE_HOST=$ipaddress
DEVSTACKEOF

~/devstack/stack.sh

Remove redundant line from vagrant All-In-One script
Remove redundant line from vagrant All-In-One script

There is a legacy code line that was left in the setup-aio.sh file that
is now redundant.
Removed it.

Change-Id: Ia0605c49659cd530a8da15e2bb70ba4e07150ca2
