From e7c787b343e346ef75b25cffb12c83919c85b91a Mon Sep 17 00:00:00 2001 From: Brandon Heller Date: Sat, 13 Mar 2010 06:02:40 -0800 Subject: [PATCH] Fix sending commands to switches --- mininet/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mininet/node.py b/mininet/node.py index a8691d7..61cd78c 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -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 )