Revision 55dd9368 cleanup

View differences:

cleanup
1 1
#!/bin/bash
2 2

  
3
# Unfortunately, Mininet and OpenFlow don't always clean up
4
# properly after themselves. Until they do (or until cleanup
5
# functionality is integrated into the python code), this
6
# script may be used to get rid of unwanted garbage. It may
7
# also get rid of "false positives", but hopefully nothing
8
# irreplaceable!
9

  
3 10
echo "Removing all links of the pattern foo-ethX"
4 11

  
5 12
for f in `ip link show | egrep -o '(\w+-eth\w+)' ` ; do  
......
14 21
echo "Removing excess kernel datapath processes"
15 22
ps ax | egrep -o 'dp[0-9]+' | sed 's/dp/nl:/' | xargs -l1 echo dpctl deldp 
16 23

  
17
echo "Removing vconn junk in /tmp"
24
echo "Removing junk in /tmp"
18 25
rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log
19 26

  
20 27
echo "Removing old screen sessions"

Also available in: Unified diff