Skip to content

Instantly share code, notes, and snippets.

@salv-orlando
Created May 17, 2013 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salv-orlando/5598358 to your computer and use it in GitHub Desktop.
Save salv-orlando/5598358 to your computer and use it in GitHub Desktop.
Create stuff on quantum
for (( k=0; k<$1; k++ ))
do
quantum net-create net-$k
quantum subnet-create net-$k 10.0.$k.0/24 --name sub-$k
for (( j=0; j<$2; j++ ))
do
quantum port-create net-$k --name port-$k-$j
done
quantum net-list
quantum port-list
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment