Show ip address before associating address
In order to see is the instance has a fixed ip at the moment. Change-Id: I506f2f099a03e8b63f1f2daeb564ed72f1322a68
This commit is contained in:
@@ -129,7 +129,8 @@ else
|
|||||||
# Allocate floating address
|
# Allocate floating address
|
||||||
FLOATING_IP=`euca-allocate-address | cut -f2`
|
FLOATING_IP=`euca-allocate-address | cut -f2`
|
||||||
die_if_not_set $LINENO FLOATING_IP "Failure allocating floating IP"
|
die_if_not_set $LINENO FLOATING_IP "Failure allocating floating IP"
|
||||||
|
# describe all instances at this moment
|
||||||
|
euca-describe-instances
|
||||||
# Associate floating address
|
# Associate floating address
|
||||||
euca-associate-address -i $INSTANCE $FLOATING_IP || \
|
euca-associate-address -i $INSTANCE $FLOATING_IP || \
|
||||||
die $LINENO "Failure associating address $FLOATING_IP to $INSTANCE"
|
die $LINENO "Failure associating address $FLOATING_IP to $INSTANCE"
|
||||||
|
|||||||
Reference in New Issue
Block a user