Fix sending commands to switches

This commit is contained in:
Brandon Heller
2010-03-13 06:02:40 -08:00
parent cae423e543
commit e7c787b343
+2 -2
View File
@@ -355,11 +355,11 @@ class Switch( Node ):
"""A Switch is a Node that is running (or has execed?)
an OpenFlow switch."""
def sendCmd( self, cmd, printCmd=False):
def sendCmd( self, cmd, printPid=False):
"""Send command to Node.
cmd: string"""
if not self.execed:
return Node.sendCmd( self, cmd, printCmd )
return Node.sendCmd( self, cmd, printPid )
else:
error( '*** Error: %s has execed and cannot accept commands' %
self.name )