Created
May 24, 2017 15:23
-
-
Save aswinsuryan/f4475f4bf0eb851e1986d31211fdf598 to your computer and use it in GitHub Desktop.
This file contains 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
. ./openrc admin admin | |
neutron net-create vx-net1 --provider:network_type vxlan | |
neutron subnet-create vx-net1 10.100.5.0/24 --name vx-subnet1 | |
neutron net-create vx-net2 --provider:network_type vxlan | |
neutron subnet-create vx-net2 10.100.6.0/24 --name vx-subnet2 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net1 | awk '{print $2}') --availability-zone nova::odl31 vmvx2 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net2 | awk '{print $2}') --availability-zone nova::odl31 vmvx3 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net1 | awk '{print $2}') --availability-zone nova::odl32 vmvx4 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net2 | awk '{print $2}') --availability-zone nova::odl32 vmvx5 | |
neutron router-create router1 | |
neutron router-interface-add router1 vx-subnet1 | |
neutron router-interface-add router1 vx-subnet2 | |
nova boot --poll --flavor m1.tiny --image $(glance image-list | grep 'uec\s' | awk '{print $2}' | tail -1) --nic net-id=$(neutron net-list | grep -w vx-net2 | awk '{print $2}') --availability-zone nova::odl31 vmvx6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment