Revision 18aab5b7 mininet/util.py

View differences:

mininet/util.py
427 427
        sysctlTestAndSet( 'net.ipv4.route.max_size', 32768 )
428 428
        #Increase number of PTYs for nodes
429 429
        sysctlTestAndSet( 'kernel.pty.max', 20000 )
430
    # pylint: disable=broad-except
430 431
    except Exception:
431 432
        warn( "*** Error setting resource limits. "
432 433
              "Mininet's performance may be affected.\n" )
......
549 550
                partial( quietRun, shell=True ) )
550 551
    if not runCmd( 'which telnet' ):
551 552
        raise Exception('Could not find telnet' )
553
    # pylint: disable=maybe-no-member
552 554
    serverIP = server if isinstance( server, basestring ) else server.IP()
553 555
    cmd = ( 'sh -c "echo A | telnet -e A %s %s"' %
554 556
           ( serverIP, port ) )

Also available in: Unified diff