diff options
Diffstat (limited to 'deploy/host_virtual.sh')
-rwxr-xr-x | deploy/host_virtual.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deploy/host_virtual.sh b/deploy/host_virtual.sh index 2fab2c9d..0a991f11 100755 --- a/deploy/host_virtual.sh +++ b/deploy/host_virtual.sh @@ -54,6 +54,19 @@ function launch_host_vms() { IFS=$old_ifs } +function recover_host_vms() { + old_ifs=$IFS + IFS=, + + for host in $HOSTNAMES; do + sudo virsh destroy $host + sleep 2 + sudo virsh start $host + sleep 2 + done + IFS=$old_ifs +} + function get_host_macs() { local mac_generator=${COMPASS_DIR}/deploy/mac_generator.sh local machines= |