Skip to content

Instantly share code, notes, and snippets.

@metacoma
Created March 1, 2016 11:40
Show Gist options
  • Save metacoma/d1aa82483846f0d9d765 to your computer and use it in GitHub Desktop.
Save metacoma/d1aa82483846f0d9d765 to your computer and use it in GitHub Desktop.
populate env
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