| In FreeBSD, it's standard practice to specify VLAN interfaces with a period separating the interface and VLAN. (e.g. igb1.5 specifies the igb1 network interface VLAN 5). However, Facter 4 is not picking these up as interfaces, and is instead assigning these attributes to the lo0 interface. In lib/facter/resolvers/networking.rb:
interfaces_data = Hash[*response.split(/^([A-Za-z0-9_]+): /)[1..-1]]
|
adding a literal period "\." to the regex allows these interfaces to be properly identified.
interfaces_data = Hash[*response.split(/^([A-Za-z0-9_\.]+): /)[1..-1]]
|
|