From f0e55e1096dc11614ffc99b7589c261a87ad610f Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 6 Feb 2014 15:30:13 -0800 Subject: [PATCH] Remove mn links with dots in them (e.g. foo_bar-baz1.2-eth0) --- mininet/clean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/clean.py b/mininet/clean.py index 35fbd0f..6d21fb5 100755 --- a/mininet/clean.py +++ b/mininet/clean.py @@ -59,7 +59,7 @@ def cleanup(): sh( 'ovs-vsctl del-br ' + dp ) info( "*** Removing all links of the pattern foo-ethX\n" ) - links = sh( r"ip link show | egrep -o '([-_[:alnum:]]+-eth[[:digit:]]+)'" ).split( '\n' ) + links = sh( r"ip link show | egrep -o '([-_.[:alnum:]]+-eth[[:digit:]]+)'" ).split( '\n' ) for link in links: if link != '': sh( "ip link del " + link )