summaryrefslogtreecommitdiffstats
path: root/ocata/vagrant/create_vm.sh
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-09-15 07:11:31 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-09-15 08:23:47 -0700
commitfb376919325e3d9f82ad937cad2a810bcb6982bb (patch)
tree3661fed27e8cc6c92c1971b1dd01f3305cdcf125 /ocata/vagrant/create_vm.sh
parent311bb07521ee065329021b12ac27b3584826541d (diff)
setup function test framework
this patch is to add designate features in openstack Change-Id: Ifb0cd9b45476ef12df6dd767706d639bf64c0752 Issue-Id: MULTICLOUD-92 Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'ocata/vagrant/create_vm.sh')
-rw-r--r--ocata/vagrant/create_vm.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/ocata/vagrant/create_vm.sh b/ocata/vagrant/create_vm.sh
new file mode 100644
index 00000000..6597ae45
--- /dev/null
+++ b/ocata/vagrant/create_vm.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+source ~/devstack/openrc admin admin
+netid=$(openstack network list --name private -f value | cut -f1 -d' ')
+openstack server create --flavor 1 --image=cirros-0.3.4-x86_64-uec --nic net-id=$netid vm1