Add option to turn off passive listening port
This commit is contained in:
1 parent
b480b6ef77
commit
0a9358c9fc
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -174,7 +174,7 @@ class Mininet( object ):
|
||||
sw = self.switch( name, listenPort=self.listenPort,
|
||||
defaultMAC=mac, defaultIP=ip, dp=self.dps,
|
||||
inNamespace=self.inNamespace )
|
||||
if not self.inNamespace:
|
||||
if not self.inNamespace and self.listenPort:
|
||||
self.listenPort += 1
|
||||
self.dps += 1
|
||||
self.switches.append( sw )
|
||||
|
||||
Reference in new issue
Block a user