Merge "export HOSTIP"
This commit is contained in:
commit
315a9edb7a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue