Thomas Vachuska | 0fdf7c9 | 2016-05-05 17:01:39 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | # Destroys an LXC node with the specified name. | ||||
3 | |||||
4 | name=$1 | ||||
5 | [ "$name" = "onos-base" ] && echo "Don't do that!" && exit 1 | ||||
6 | [ "$name" = "mininet-base" ] && echo "Don't do that!" && exit 1 | ||||
7 | |||||
8 | sudo lxc-stop -n $name | ||||
9 | sudo lxc-destroy -n $name |