Merge "export HOSTIP"

This commit is contained in:
Jenkins 2014-07-16 08:37:43 +00:00 committed by Gerrit Code Review
commit 315a9edb7a
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ MAC=$(ip link show ${DUMMYDEVICE} | awk 'NR==2 {print $2}')
NETWORKNAME=$(os-apply-config --key gearman-worker.network_name --type netdevice)
PORTOUTPUT=$(neutron port-create --name te_$(hostname) --mac-address $MAC --format shell --column fixed_ips $NETWORKNAME)
echo "$PORTOUTPUT"
HOSTIP=$(echo "$PORTOUTPUT" | grep -E -o "([0-9]+\.){3}[0-9]+")
export HOSTIP=$(echo "$PORTOUTPUT" | grep -E -o "([0-9]+\.){3}[0-9]+")
# TODO : Get prefix length
ip addr add $HOSTIP/24 dev $DUMMYDEVICE