Update tacker CLI to openstack CLI in cleanup-tacker
Change to openstack CLI Change-Id: I75db9548b94800b6a451a658931d11a333a8e054
This commit is contained in:
parent
20c58a9c53
commit
d39ba689ac
@ -1,20 +1,20 @@
|
||||
#!/bin/bash
|
||||
if [[ -f kolla-sample-vnffgd.yaml ]]; then
|
||||
echo "Deleting VNFFG"
|
||||
tacker vnffg-delete kolla-sample-vnffg
|
||||
openstack vnf graph delete kolla-sample-vnffg
|
||||
echo "Deleting VNFFGD"
|
||||
tacker vnffgd-delete kolla-sample-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"
|
||||
tacker vnf-delete kolla-sample-vnf
|
||||
while tacker vnf-list | grep -q kolla-sample-vnf; do
|
||||
openstack vnf delete kolla-sample-vnf
|
||||
while openstack vnf list | grep -q kolla-sample-vnf; do
|
||||
sleep 1
|
||||
done
|
||||
echo "Deleting sample VNFD"
|
||||
tacker vnfd-delete kolla-sample-vnfd
|
||||
openstack vnf descriptor delete kolla-sample-vnfd
|
||||
echo "Deleting sample VIM"
|
||||
tacker vim-delete kolla-sample-vim
|
||||
openstack vim delete kolla-sample-vim
|
||||
echo "Removing sample config"
|
||||
rm -rf ./kolla-sample-*
|
||||
|
Loading…
Reference in New Issue
Block a user