Revision edf60032 mininet/net.py

View differences:

mininet/net.py
107 107
    "Network emulation with hosts spawned in network namespaces."
108 108

  
109 109
    def __init__( self, topo=None, switch=OVSKernelSwitch, host=Host,
110
                 controller=Controller, link=Link, intf=Intf,
111
                 build=True, xterms=False, cleanup=False, ipBase='10.0.0.0/8',
112
                 inNamespace=False,
113
                 autoSetMacs=False, autoStaticArp=False, autoPinCpus=False,
114
                 listenPort=None ):
110
                  controller=Controller, link=Link, intf=Intf,
111
                  build=True, xterms=False, cleanup=False, ipBase='10.0.0.0/8',
112
                  inNamespace=False,
113
                  autoSetMacs=False, autoStaticArp=False, autoPinCpus=False,
114
                  listenPort=None ):
115 115
        """Create Mininet object.
116 116
           topo: Topo (topology) object or None
117 117
           switch: default Switch class
......
307 307
    def configureControlNetwork( self ):
308 308
        "Control net config hook: override in subclass"
309 309
        raise Exception( 'configureControlNetwork: '
310
               'should be overriden in subclass', self )
310
                         'should be overriden in subclass', self )
311 311

  
312 312
    def build( self ):
313 313
        "Build mininet."
......
519 519
                output('waiting for iperf to start up...')
520 520
                sleep(.5)
521 521
        cliout = client.cmd( iperfArgs + '-t 5 -c ' + server.IP() + ' ' +
522
                           bwArgs )
522
                             bwArgs )
523 523
        debug( 'Client output: %s\n' % cliout )
524 524
        server.sendInt()
525 525
        servout += server.waitOutput()
......
617 617
    # in the control network location.
618 618

  
619 619
    def configureRoutedControlNetwork( self, ip='192.168.123.1',
620
            prefixLen=16 ):
620
                                       prefixLen=16 ):
621 621
        """Configure a routed control network on controller and switches.
622 622
           For use with the user datapath only right now."""
623 623
        controller = self.controllers[ 0 ]

Also available in: Unified diff