Gitiles
Code Review
Sign In
gerrit.onosproject.org
/
onos
/
dea375a7dec021147d3f2a4bb6ec9c0240367eac
/
.
/
utils
/
warden
/
bin
/
destroy-node
blob: b315d41253f1bf3b4a01d838268c289bb97402d0 [
file
] [
log
] [
blame
]
#!/bin/bash
# Destroys an LXC node with the specified name.
name
=
$1
[
"$name"
=
"onos-base"
]
&&
echo
"Don't do that!"
&&
exit
1
[
"$name"
=
"mininet-base"
]
&&
echo
"Don't do that!"
&&
exit
1
sudo lxc
-
stop
-
n $name
sudo lxc
-
destroy
-
n $name