We don't need to print the links.
This commit is contained in:
@@ -30,7 +30,6 @@ def cleanUpScreens():
|
|||||||
def cleanup():
|
def cleanup():
|
||||||
print "*** Removing all links of the pattern foo-ethX"
|
print "*** Removing all links of the pattern foo-ethX"
|
||||||
links = sh( "ip link show | egrep -o '(\w+-eth\w+)'" ).split( '\n' )
|
links = sh( "ip link show | egrep -o '(\w+-eth\w+)'" ).split( '\n' )
|
||||||
print links
|
|
||||||
for link in links:
|
for link in links:
|
||||||
if link != '': sh( "ip link del " + link )
|
if link != '': sh( "ip link del " + link )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user