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"
16 log_action "Network $net"
17 execute "virsh net-destroy $net"
20 for host in $STRONGSWANHOSTS
22 log_action "Guest $host"
23 execute "virsh destroy $host"
24 rm -f $VIRTIMGSTORE/$host.$IMGEXT
27 log_action "Removing kernel $KERNEL"
28 execute "rm $KNLTARGET"