Some clarifications

This commit is contained in:
backb1
2014-11-19 08:58:17 -08:00
committed by Bob Lantz
parent d37d6ecd99
commit 6721f0655e
+3 -1
View File
@@ -386,7 +386,7 @@ class Mininet( object ):
if not self.controllers and self.controller: if not self.controllers and self.controller:
# Add a default controller # Add a default controller
info( '*** Adding controller\n' ) info( '** No controller defined, adding default controller\n' )
classes = self.controller classes = self.controller
if type( classes ) is not list: if type( classes ) is not list:
classes = [ classes ] classes = [ classes ]
@@ -464,7 +464,9 @@ class Mininet( object ):
self.build() self.build()
info( '*** Starting controller\n' ) info( '*** Starting controller\n' )
for controller in self.controllers: for controller in self.controllers:
info( controller.name + ' ')
controller.start() controller.start()
info( '\n' )
info( '*** Starting %s switches\n' % len( self.switches ) ) info( '*** Starting %s switches\n' % len( self.switches ) )
for switch in self.switches: for switch in self.switches:
info( switch.name + ' ') info( switch.name + ' ')