Remove mn links with dots in them (e.g. foo_bar-baz1.2-eth0)

This commit is contained in:
Bob Lantz
2014-02-06 15:33:11 -08:00
parent 74c71bc8a4
commit f0e55e1096
+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 '([-_[: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 )