Revision 43461905

View differences:

bin/mn
254 254
    def begin( self ):
255 255
        "Create and run mininet."
256 256

  
257
        global CLI
258
        
257

  
259 258
        if self.options.clean:
260 259
            cleanup()
261 260
            exit()
......
303 302
            print "Please specify --innamespace OR --cluster"
304 303
            exit()
305 304
        Net = MininetWithControlNet if inNamespace else Mininet
305
        cli = ClusterCLI if cluster else CLI
306 306
        if cluster:
307 307
            warn( '*** WARNING: Experimental cluster mode!\n'
308 308
              '*** Using RemoteHost, RemoteOVSSwitch, RemoteLink\n' )
309 309
            host, switch, link = RemoteHost, RemoteOVSSwitch, RemoteLink
310
            CLI = ClusterCLI
311 310
            Net = partial( MininetCluster, servers=cluster.split( ',' ),
312 311
                           placement=PLACEMENT[ self.options.placement ] )
313 312

  
......
325 324
            nat.configDefault()
326 325

  
327 326
        if self.options.pre:
328
            CLI( mn, script=self.options.pre )
327
            cli( mn, script=self.options.pre )
329 328

  
330 329
        test = self.options.test
331 330
        test = ALTSPELLING.get( test, test )

Also available in: Unified diff