blob: 02943935d5454d77464f465312af1aef765ae9da [file] [log] [blame]
Gary Wu874794d2017-10-13 12:27:39 -07001#!/bin/bash
2
Gary Wu874794d2017-10-13 12:27:39 -07003if [ -z "$WORKSPACE" ]; then
4 export WORKSPACE=`git rev-parse --show-toplevel`
5fi
6
Gary Wu838c34d2017-10-23 14:22:40 -07007source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
Gary Wu874794d2017-10-13 12:27:39 -07008
Gary Wu99a7c1a2017-10-23 13:12:06 -07009# Delete all existing stacks
10STACKS=$(openstack stack list -c "Stack Name" -f value)
Gary Wu5f717412017-10-23 13:19:45 -070011echo "Deleting Stacks ${STACKS}"
12openstack stack delete -y $STACKS
Gary Wu874794d2017-10-13 12:27:39 -070013
14STACK="ete-$(uuidgen | cut -c-8)"
Gary Wu99a7c1a2017-10-23 13:12:06 -070015echo "New Stack Name: ${STACK}"
Gary Wua770e642017-10-23 12:30:29 -070016openstack stack create -t ${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml -e ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env $STACK
Gary Wu874794d2017-10-13 12:27:39 -070017