From c5f6d0ff171edd7749dcb5c81b40dba432c19387 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Sat, 2 May 2015 13:16:48 -0700 Subject: [PATCH] Restore use of self.intf (if present) in addLink fixes #515 --- mininet/net.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mininet/net.py b/mininet/net.py index 8e39c7b..7cda0ae 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -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() )