Revision 9005ce32

View differences:

mininet/net.py
169 169
        self.nextIP += 1
170 170
        defaults.update( params )
171 171
        if not cls:
172
            cls  = self.host
172
            cls = self.host
173 173
        h = cls( name, **defaults )
174 174
        self.hosts.append( h )
175 175
        self.nameToNode[ name ] = h
......
204 204
            self.nameToNode[ name ] = controller_new
205 205
        return controller_new
206 206

  
207
    def addLink( self, src, dst, srcPort=None, dstPort=None, 
207
    def addLink( self, src, dst, srcPort=None, dstPort=None,
208 208
                 cls=None, **params ):
209 209
        "Add a link from topo"
210 210
        if self.intf and not 'intf' in params:

Also available in: Unified diff