Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aswinsuryan/f4475f4bf0eb851e1986d31211fdf598 to your computer and use it in GitHub Desktop.
Save aswinsuryan/f4475f4bf0eb851e1986d31211fdf598 to your computer and use it in GitHub Desktop.
. ./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