Merge pull request #566 from moz/master

addNAT always use first switch
This commit is contained in:
lantz
2015-11-23 15:33:12 -08:00
+1 -1
View File
@@ -281,7 +281,7 @@ class Mininet( object ):
# Use first switch if not specified # Use first switch if not specified
connect = self.switches[ 0 ] connect = self.switches[ 0 ]
# Connect the nat to the switch # Connect the nat to the switch
self.addLink( nat, self.switches[ 0 ] ) self.addLink( nat, connect )
# Set the default route on hosts # Set the default route on hosts
natIP = nat.params[ 'ip' ].split('/')[ 0 ] natIP = nat.params[ 'ip' ].split('/')[ 0 ]
for host in self.hosts: for host in self.hosts: