Skip to content

Instantly share code, notes, and snippets.

@alagalah
Created May 31, 2015 18:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save alagalah/ff68f98b5f031e15b197 to your computer and use it in GitHub Desktop.
vagrant@devstack-control:/vagrant/devstack-scripts$ cat test2basic.sh
neutron security-group-create client_sg
neutron security-group-rule-create client_sg --direction egress --ethertype IPv4
neutron security-group-rule-create client_sg --direction ingress --ethertype IPv4
neutron security-group-create video_sg
neutron security-group-rule-create video_sg --direction egress --ethertype IPv4
neutron security-group-rule-create video_sg --direction ingress --ethertype IPv4
neutron net-create net1
neutron subnet-create net1 10.1.1.0/24 --name sub1 --gateway 10.1.1.1
neutron net-create net2
neutron subnet-create net2 20.1.1.0/24 --name sub2 --gateway 20.1.1.1
neutron router-create r1
neutron router-interface-add r1 sub1
neutron router-interface-add r1 sub2
testnovaboot-control.sh net1 client_sg 1 #"bekind"
testnovaboot-control.sh net2 client_sg 2
testnovaboot-control.sh net2 video_sg 2
echo "control:"
nova list --host devstack-control
echo "compute:"
nova list --host devstack-compute-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment