Revision aabbf295

View differences:

mininet/net.py
265 265
        return controller_new
266 266

  
267 267
    def addNAT( self, name='nat0', connect=True, inNamespace=False, **params ):
268
        nat = self.addHost( name, cls=NAT, inNamespace=inNamespace, 
268
        nat = self.addHost( name, cls=NAT, inNamespace=inNamespace,
269 269
                            subnet=self.ipBase, **params )
270 270
        # find first switch and create link
271 271
        if connect:
......
326 326
        "Return a random, non-multicast MAC address"
327 327
        return macColonHex( random.randint(1, 2**48 - 1) & 0xfeffffffffff  |
328 328
                            0x020000000000 )
329
    
329

  
330 330
    def addLink( self, node1, node2, port1=None, port2=None,
331 331
                 cls=None, **params ):
332 332
        """"Add a link from node1 to node2
......
386 386

  
387 387
        if not self.controllers and self.controller:
388 388
            # Add a default controller
389
            info( '** No controller defined, adding default controller\n' )
389
            info( '*** Adding controller\n' )
390 390
            classes = self.controller
391 391
            if type( classes ) is not list:
392 392
                classes = [ classes ]

Also available in: Unified diff