Skip to content

Instantly share code, notes, and snippets.

@jfrost
Created July 10, 2015 20:47
Show Gist options
  • Save jfrost/ee8ccc32159069f7c563 to your computer and use it in GitHub Desktop.
Save jfrost/ee8ccc32159069f7c563 to your computer and use it in GitHub Desktop.
Grab the first available floating IP using neutron and awk
neutron floatingip-list --format csv --quote none | awk -F ',' '{ if ($2 == "" ) print $3 }'|head -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment