Revision 4e76439c mininet/net.py

View differences:

mininet/net.py
617 617

  
618 618
    # XXX This should be cleaned up
619 619

  
620
    def iperf( self, hosts=None, l4Type='TCP', udpBw='10M' ):
620
    def iperf( self, hosts=None, l4Type='TCP', udpBw='10M', format='M' ):
621 621
        """Run iperf between two hosts.
622 622
           hosts: list of hosts; if None, uses opposite hosts
623 623
           l4Type: string, one of [ TCP, UDP ]
......
640 640
            bwArgs = '-b ' + udpBw + ' '
641 641
        elif l4Type != 'TCP':
642 642
            raise Exception( 'Unexpected l4 type: %s' % l4Type )
643
        if not format == 'M':
644
          iperfArgs += '-f %s ' %format
643 645
        server.sendCmd( iperfArgs + '-s', printPid=True )
644 646
        servout = ''
645 647
        while server.lastPid is None:

Also available in: Unified diff