Support multiple --controller arguments

This commit is contained in:
Bob Lantz
2015-03-30 20:40:07 -07:00
parent a2486a6d66
commit 125e669723
2 changed files with 15 additions and 19 deletions
+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: