
installation of os_only cento6.5 is successful going to test Ubuntu 14.04 Change-Id: Ib08cf2860ae28a219f259873fcc015442ff6fc67
21 lines
623 B
Bash
21 lines
623 B
Bash
function tear_down_machines() {
|
|
virtmachines=$(virsh list --name |grep pxe)
|
|
for virtmachine in $virtmachines; do
|
|
echo "destroy $virtmachine"
|
|
virsh destroy $virtmachine
|
|
if [[ "$?" != "0" ]]; then
|
|
echo "destroy instance $virtmachine failed"
|
|
exit 1
|
|
fi
|
|
done
|
|
virtmachines=$(virsh list --all --name |grep pxe)
|
|
for virtmachine in $virtmachines; do
|
|
echo "undefine $virtmachine"
|
|
virsh undefine $virtmachine
|
|
if [[ "$?" != "0" ]]; then
|
|
echo "undefine instance $virtmachine failed"
|
|
exit 1
|
|
fi
|
|
done
|
|
}
|