Revision f58f83c0

View differences:

mininet/net.py
278 278
        if not self.controllers:
279 279
            # Add a default controller
280 280
            info( '*** Adding controller\n' )
281
            self.addController( 'c0' )
281
            classes = self.controller
282
            if type( classes ) is not list:
283
                classes = [ classes ]
284
            for i, cls in enumerate( classes ):
285
                self.addController( 'c%d' % i, cls )
282 286

  
283 287
        info( '*** Adding hosts:\n' )
284 288
        for hostName in topo.hosts():

Also available in: Unified diff