Bah, wasn't using correct command to remove datapaths! Fixed.

This commit is contained in:
Bob Lantz
2009-12-15 21:01:19 -08:00
parent 05cce994c3
commit e04f092232
+2 -1
View File
@@ -30,6 +30,7 @@ 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 )
@@ -43,7 +44,7 @@ def cleanup():
print "*** Removing excess kernel datapaths" print "*** Removing excess kernel datapaths"
dps = sh( "ps ax | egrep -o 'dp[0-9]+' | sed 's/dp/nl:/'" ).split( '\n') dps = sh( "ps ax | egrep -o 'dp[0-9]+' | sed 's/dp/nl:/'" ).split( '\n')
for dp in dps: for dp in dps:
if dp != '': sh( 'ip link del ' + link ) if dp != '': sh( 'dpctl deldp ' + dp )
print "*** Removing junk from /tmp" print "*** Removing junk from /tmp"
sh( 'rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log' ) sh( 'rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log' )