-
-
Save metacoma/d1aa82483846f0d9d765 to your computer and use it in GitHub Desktop.
populate env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export IMAGE_ID=`nova image-list | awk '/TestVM/ {print $2}'` export NET_ID=`nova net-list | awk '/net04 / {print $2}'`; export FLAVOR_ID=`nova flavor-list | awk '/m1.micro/ {print $2}'`; seq 1 15 | xargs -tI% sh -c 'nova add-floating-ip `nova boot vm% --image $IMAGE_ID --flavor=${FLAVOR_ID} --nic net-id=$NET_ID | awk "/ id / {print \\$4}"` `nova floating-ip-create | awk "/[0-9]+?\.[0-9]+\./ {print \\$2}"`' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment