fuel-plugin-6wind-virtual-a.../tests/controller_cleanup.sh
Francesco Santoro 59d25cc29e 6wind-virtual-accelerator-plugin: adding scripts for simple testing
This patch adds a "tests" folder that includes scripts to be used for
plugin testing.

Signed-off-by: Francesco Santoro <francesco.santoro@6wind.com>

Change-Id: I18d2db1137d1fe76bc1b409f20275a45e09454e7
2016-06-03 10:01:23 +02:00

16 lines
339 B
Bash

# Copyright 2016 6WIND S.A.
#
#!/bin/bash
source openrc
glance image-delete ubuntu-cloud
nova flavor-delete m1.vm_hugepages
STATUS=$(nova show test_vm | grep status | awk '{print $4}')
if [[ ${STATUS} == "ACTIVE" ]] || [[ ${STATUS} == "ERROR" ]]; then
nova delete test_vm
fi
nova secgroup-delete-rule default tcp 1 65535 0.0.0.0/0