3 . $PWD/scripts/function.sh
5 echo "Stopping test environment"
7 NETWORKS="vnet1 vnet2 vnet3"
8 KNLTARGET=/var/run/kvm-swan-kernel
10 [ `id -u` -eq 0 ] || die "You must be root to run $0"
14 log_action "Network $net"
15 execute "virsh net-destroy $net"
18 for host in $STRONGSWANHOSTS
20 log_action "Guest $host"
21 execute "virsh destroy $host"
22 rm -f $VIRTIMGSTORE/$host.img
25 log_action "Removing kernel $KERNEL"
26 execute "rm $KNLTARGET"