Issue #1582 has been reported by seanmil.

----------------------------------------
Bug #1582: [PATCH] Fix MAC address reporting for Linux bonding slave interfaces
http://projects.reductivelabs.com/issues/show/1582

Author: seanmil
Status: Unreviewed
Priority: Normal
Assigned to: 
Category: 
Target version: 
Complexity: Medium
Keywords: linux bonding macaddress


On Linux, Ethernet interfaces which are slaved to a bonding device assume the 
MAC address of the bond device (which usually takes its MAC address from the 
first slave).  As a result, when these interfaces are participating in a bond 
device facter reports the bonding MAC address, not the real MAC address for the 
device.

The attached patch is a little hackish, but works.  It determines if the OS is 
Linux and if the interface is a slave to a bond device.  If so, it looks up 
that bond device in /proc/net/bonding/BONDDEV and pulls the real hardware MAC 
address out (that is the only place on the system I am aware of that still 
returns it while the bonding device is up).



----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to