Revision 18aab5b7 mininet/net.py

View differences:

mininet/net.py
727 727
        if not quietRun( 'which telnet' ):
728 728
            error( 'Cannot find telnet in $PATH - required for iperf test' )
729 729
            return
730
        if not hosts:
731
            hosts = [ self.hosts[ 0 ], self.hosts[ -1 ] ]
732
        else:
733
            assert len( hosts ) == 2
730
        hosts = hosts or [ self.hosts[ 0 ], self.hosts[ -1 ] ]
731
        assert len( hosts ) == 2
734 732
        client, server = hosts
735 733
        output( '*** Iperf: testing ' + l4Type + ' bandwidth between ' )
736 734
        output( "%s and %s\n" % ( client.name, server.name ) )

Also available in: Unified diff