From 54dfb2434a58272d6c592429deb44f96b2e10e1b Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Thu, 22 Apr 2010 17:04:48 -0700 Subject: [PATCH] Changed to use new cmd interface. I'm still not 100% sure on this. --- mininet/net.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mininet/net.py b/mininet/net.py index 928812d..a6a7808 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -114,7 +114,7 @@ def init(): exit( 1 ) # If which produces no output, then mnexec is not in the path. # May want to loosen this to handle mnexec in the current dir. - if not quietRun( [ 'which', 'mnexec' ] ): + if not quietRun( 'which mnexec' ): raise Exception( "Could not find mnexec - check $PATH" ) fixLimits() @@ -540,10 +540,10 @@ class Mininet( object ): if len( connections ) == 0: error( 'src and dst not connected: %s %s\n' % ( src, dst) ) for srcIntf, dstIntf in connections: - result = srcNode.cmd( [ 'ifconfig', srcIntf, status ] ) + result = srcNode.cmd( 'ifconfig', srcIntf, status ) if result: error( 'link src status change failed: %s\n' % result ) - result = dstNode.cmd( [ 'ifconfig', dstIntf, status ] ) + result = dstNode.cmd( 'ifconfig', dstIntf, status ) if result: error( 'link dst status change failed: %s\n' % result )