Skip to content
Snippets Groups Projects
Commit 54dfb243 authored by Bob Lantz's avatar Bob Lantz
Browse files

Changed to use new cmd interface.

I'm still not 100% sure on this.
parent b1458654
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ def configLinkStatus( self, src, dst, status ):
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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment