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