From ec9b23ba9c7101e2448315de54fb5fe2451652d6 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 4 Feb 2015 04:15:19 -0800 Subject: [PATCH] Delete tap9 for CE In the future, we should probably not hardwire this, or should at least make it a constant!! --- mininet/clean.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mininet/clean.py b/mininet/clean.py index 707452e..db9ffa1 100755 --- a/mininet/clean.py +++ b/mininet/clean.py @@ -92,6 +92,10 @@ class Cleanup( object ): if link: sh( "ip link del " + link ) + if 'tap9' in sh( 'ip link show' ): + info( "*** Removing tap9 - assuming it's from cluster edition\n" ) + sh( 'ip link del tap9' ) + info( "*** Killing stale mininet node processes\n" ) killprocs( 'mininet:' )