summaryrefslogtreecommitdiff
path: root/dht/vnet/clean.sh
blob: 3e0af1bdbdcf6520ff2704f48e6e47ac80edb358 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh

cleanhub() {
	brctl delbr hub

	ip link del hub0
	ip link del hub1
	ip link del hub2
	ip link del hub3
	ip link del hub4
	ip link del hub5
	ip link del hub6
	ip link del hub7

	ip link del hub8
	ip link del hub9
	ip link del hubA
	ip link del hubB
	ip link del hubC
	ip link del hubD
	ip link del hubE
	ip link del hubF
}

cleantaps()
{
	ip link del ep0
	ip link del ep1
	ip link del ep2
	ip link del ep3
	ip link del ep4
	ip link del ep5
	ip link del ep6
	ip link del ep7

	ip link del ep8
	ip link del ep9
	ip link del epA
	ip link del epB
	ip link del epC
	ip link del epD
	ip link del epE
	ip link del epF
}

cleantaps

rm -rf ep0 ep1 ep2 ep3 ep4 ep5 ep6 ep7 \
       ep8 ep9 epA epB epC epD epE epF