Support multiple --controller arguments
This commit is contained in:
1 parent
a2486a6d66
commit
125e669723
2 files changed
+15
-19
No files matched your search
+1
-1
@@ -402,7 +402,7 @@ class Mininet( object ):
|
||||
if not isinstance( classes, list ):
|
||||
classes = [ classes ]
|
||||
for i, cls in enumerate( classes ):
|
||||
# Allow Controller objects because nobody understands currying
|
||||
# Allow Controller objects because nobody understands partial()
|
||||
if isinstance( cls, Controller ):
|
||||
self.addController( cls )
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user