Issue #16665 has been updated by Josh Cooper.

Thanks Sebastian. I think I looked into the WMI approach, but I don't think 
IPv6 was handled correctly from 2003 and up. I'm a bit fuzzy on the details (or 
even if IPv6 is supported on 2003) 
<http://msdn.microsoft.com/en-us/library/windows/desktop/aa822883(v=vs.85).aspx>
----------------------------------------
Bug #16665: [windows] wrong ipaddress with locale != en
https://projects.puppetlabs.com/issues/16665#change-73432

Author: Sebastian Lehn
Status: Accepted
Priority: Normal
Assignee: 
Category: windows
Target version: 
Keywords: windows, ipaddress, netmask, ipaddress6
Branch: 
Affected Facter version: 1.6.11


Within module Facter::Util::IP

<pre>
   # A map of all the different regexes that work for
   # a given platform or set of platforms.
   REGEX_MAP = {
    :windows => {
      :ipaddress  => /\s+IP Address:\s+([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,
      :ipaddress6 => /Address 
((?![fe80|::1])(?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/,
      :netmask  => /\s+Subnet Prefix:\s+\S+\s+\(mask 
([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)\)/
    }
   }
</pre>

Regex contains english strings. That's why facter returns no ip address for 
interfaces and no netmask.



-- 
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://projects.puppetlabs.com/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