blob: 2e4a8675b0fb7d60fb3977f87dc4bdecdaa9d06e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#! /bin/bash
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo $0 $*"
exit 1
fi
echo "Stopping docker containers:"
sudo docker stop vppA
sudo docker stop vppB
sudo docker stop vppC
sudo docker stop vppD
sudo docker stop vppE
echo "Deleting docker containers:"
sudo docker rm vppA
sudo docker rm vppB
sudo docker rm vppC
sudo docker rm vppD
sudo docker rm vppE
echo "Cleaning namespaces."
sudo ip -all netns delete
echo "Cleanup finished."
|