From 0aefb0e0362fb886745e82b826942b3beb9e2e9b Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 19 Dec 2012 16:09:17 -0800 Subject: [PATCH] Fix Node.MAC(intf) to return intf.MAC() rather than intf.IP() Fixes #89 ; Thanks to Nikhil S. Menon for the bug report --- mininet/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mininet/node.py b/mininet/node.py index 023c1e1..4779022 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -447,7 +447,7 @@ class Node( object ): def MAC( self, intf=None ): "Return MAC address of a node or specific interface." - return self.intf( intf ).IP() + return self.intf( intf ).MAC() def intfIsUp( self, intf=None ): "Check if an interface is up."