Created
July 10, 2015 20:47
-
-
Save jfrost/ee8ccc32159069f7c563 to your computer and use it in GitHub Desktop.
Grab the first available floating IP using neutron and awk
This file contains hidden or 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
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