Merge pull request #263 from adferguson/clean-fix

adjust regex for finding mininet's links during cleanup
This commit is contained in:
lantz
2014-01-29 17:03:37 -08:00
+1 -1
View File
@@ -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 '(\w+-eth\w+)'" ).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 )