One more change to revert the broken exec behavior.
This commit is contained in:
+2
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user