One more change to revert the broken exec behavior.

This commit is contained in:
Bob Lantz
2009-12-14 19:21:17 -08:00
parent 0608b5939b
commit 845dedca32
+2 -1
View File
@@ -306,7 +306,8 @@ class Switch( Node ):
def stop( self ): def stop( self ):
if self.dp is None: self.stopUserDatapath() if self.dp is None: self.stopUserDatapath()
else: self.stopKernelDatapath() else: self.stopKernelDatapath()
# Handle non-interaction if we've execed # Handle non-interaction if we've execed
self.terminate()
def sendCmd( self, cmd ): def sendCmd( self, cmd ):
if not self.execed: return Node.sendCmd( self, cmd ) if not self.execed: return Node.sendCmd( self, cmd )
else: print "*** Error:", self.name, "has execed and cannot accept commands" else: print "*** Error:", self.name, "has execed and cannot accept commands"