Support multiple --controller arguments

This commit is contained in:
Bob Lantz committed 2015-03-30 20:40:07 -07:00
1 parent a2486a6d66
commit 125e669723
2 files changed
+15 -19

No files matched your search

+1 -1
View File
@@ -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: