Fix Node.MAC(intf) to return intf.MAC() rather than intf.IP()

Fixes #89 ; Thanks to Nikhil S. Menon for the bug report
This commit is contained in:
Bob Lantz
2012-12-19 16:11:57 -08:00
parent 5879c492d8
commit 0aefb0e036
+1 -1
View File
@@ -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."