Issue #1345 has been updated by mcbride.

Although it was not explicitly mentioned in the original ticket, the incorrect 
netmask is also selected for the interface if aliases are present. This is 
problematic as aliases are generally set with a /32 netmask (0xffffffff / 
255.255.255.255).
----------------------------------------
Bug #1345: facter 1.5.0rc1 does not correctly handle  BSD-style interface 
aliases
http://reductivelabs.com/redmine/issues/show/1345

Author: mcbride
Status: Unreviewed
Priority: Normal
Assigned to: luke
Category: library
Target version: 
Keywords: 
Complexity: Unknown
Patch: None


Facter returns the last interface alias for an interface rather than the 
primary address, or better yet, all the addresses on that interface:


ipaddress_udav0 => 192.168.0.12
netmask_udav0 => 0xffffffff

On [[OpenBSD]] -current (but applies to previous versions and probably other 
BSD varients):

$ ifconfig udav0
udav0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:0a:79:64:b4:09
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 192.168.0.10 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::20a:79ff:fe64:b409%udav0 prefixlen 64 scopeid 0x5
        inet 192.168.0.11 netmask 0xffffffff broadcast 192.168.0.11
        inet 192.168.0.12 netmask 0xffffffff broadcast 192.168.0.12


----------------------------------------
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