Restore use of self.intf (if present) in addLink

fixes #515
This commit is contained in:
Bob Lantz
2015-05-02 13:16:48 -07:00
parent ab8c4e9198
commit c5f6d0ff17
+2
View File
@@ -357,6 +357,8 @@ class Mininet( object ):
options.setdefault( 'port1', port1 )
if port2 is not None:
options.setdefault( 'port2', port2 )
if self.intf is not None:
options.setdefault( 'intf', self.intf )
# Set default MAC - this should probably be in Link
options.setdefault( 'addr1', self.randMac() )
options.setdefault( 'addr2', self.randMac() )