puppetlabs/facter — pull request #496 by ferventcoder (2013-07-19 19:06:27+00:00)
Title: (#16668) Update Win IP facts

This updates IPAddress, IPAddress6, MacAddress and NetMask facts for windows.

These facts now use a WMI Query (mac address was using a similar one prior) and method that gets the preferred network adapter and returns facts on that adapter.

Without this change the items could continue to report incorrectly as some of them are doing currently. Using the preferred network adapter (the one with the lowest IP connection metric) will report the main ip facts as those coming from that adapter.