Revision 80be5642 bin/mnclean

View differences:

bin/mnclean
4 4
Mininet Cleanup
5 5
author: Bob Lantz (rlantz@cs.stanford.edu)
6 6

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

  
15 15
from subprocess import Popen, PIPE
......
28 28
    zombies = 'controller ofprotocol ofdatapath ping nox_core lt-nox_core '
29 29
    zombies += 'udpbwtest'
30 30
    # Note: real zombie processes can't actually be killed, since they
31
    # are already ( un )dead. Then again,
31
    # are already (un)dead. Then again,
32 32
    # you can't connect to them either, so they're mostly harmless.
33 33
    sh( 'killall -9 ' + zombies + ' 2> /dev/null' )
34 34

  

Also available in: Unified diff