kolla-ansible/contrib/demos/tacker/cleanup-tacker
YI-JIE,SYU d39ba689ac Update tacker CLI to openstack CLI in cleanup-tacker
Change to openstack CLI

Change-Id: I75db9548b94800b6a451a658931d11a333a8e054
2019-01-16 21:12:48 +08:00

21 lines
661 B
Bash

#!/bin/bash
if [[ -f kolla-sample-vnffgd.yaml ]]; then
echo "Deleting VNFFG"
openstack vnf graph delete kolla-sample-vnffg
echo "Deleting VNFFGD"
openstack vnf graph descriptor delete kolla-sample-vnffgd
echo "Deleting sample sfc instances"
openstack server delete kolla_sfc_server kolla_sfc_client
fi
echo "Deleting sample VNF"
openstack vnf delete kolla-sample-vnf
while openstack vnf list | grep -q kolla-sample-vnf; do
sleep 1
done
echo "Deleting sample VNFD"
openstack vnf descriptor delete kolla-sample-vnfd
echo "Deleting sample VIM"
openstack vim delete kolla-sample-vim
echo "Removing sample config"
rm -rf ./kolla-sample-*