Revision d82900d3 mininet/util.py

View differences:

mininet/util.py
188 188
        srcNode.cmd( cmd )
189 189
    else:
190 190
        quietRun( cmd )
191
    links = dstNode.cmd( 'ip link show' )
192
    if not ( ' %s:' % intf ) in links:
191
    if ( ' %s:' % intf ) not in dstNode.cmd( 'ip link show', intf ):
193 192
        if printError:
194 193
            error( '*** Error: moveIntf: ' + intf +
195 194
                   ' not successfully moved to ' + dstNode.name + '\n' )

Also available in: Unified diff