Archived
1
0
This repository has been archived on 2023-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zdotdir/functions/@testvm::delete
Dustin C. Hatch e120838f8a functions: Add test vm functions
* `@testvm::cleanup`: Deletes (after optionally powering off) test VMs
  matching a pattern
* `@testvm::connect`: Connects to test VM using SSH
* `@testvm::delete`: Powers off and deletes a specific test VM
* `@testvm::sftp`: Connects to a test VM using SFTP
2020-04-03 16:10:29 -05:00

9 lines
169 B
Bash

# vim: set ft=zsh sw=4 ts=4 sts=4 et :
@testvm::delete() {
virsh destroy "${1}" || :
virsh undefine "${1}" --remove-all-storage --nvram
}
@testvm::delete "$@"