Rollback cleanup functions
This commit is contained in:
parent
a9399e57a0
commit
64940c39bc
@ -18,12 +18,6 @@ cleanuppaths() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanupssh() {
|
|
||||||
for host in ${!hosts[*]}; do
|
|
||||||
ssh-keygen -R ${hosts[$host]} &>/dev/null
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanupnetwork() {
|
cleanupnetwork() {
|
||||||
if iptables -L -n |grep -q $QEMU_BR_NAME; then
|
if iptables -L -n |grep -q $QEMU_BR_NAME; then
|
||||||
pinfo "Cleaning iptables rules..."
|
pinfo "Cleaning iptables rules..."
|
||||||
@ -45,6 +39,6 @@ stopdls
|
|||||||
declare -A hosts
|
declare -A hosts
|
||||||
get_hosts
|
get_hosts
|
||||||
destroyvms
|
destroyvms
|
||||||
#cleanuppaths
|
cleanuppaths
|
||||||
cleanupssh
|
cleanupssh
|
||||||
#cleanupnetwork
|
cleanupnetwork
|
||||||
|
Loading…
Reference in New Issue
Block a user