]> git.meshlink.io Git - meshlink/blob - test/blackbox/util/nat_destroy.sh
Update the blackbox test infrastructure.
[meshlink] / test / blackbox / util / nat_destroy.sh
1 #!/bin/bash
2 router=${1}
3 router_bridge="${1}_bridge"
4
5 echo + Stopping router......
6 lxc-stop -n ${router}
7
8 echo + Removing NATs bridge....
9
10 ifconfig ${router_bridge} down
11
12 brctl delbr ${router_bridge}
13
14 echo + Destroing the routers.....
15
16 lxc-destroy -n ${router} >> /dev/null