Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Night's Watch
-
2
-
NW - 2021-03-31, NW - 2021-04-14
-
Needs Assessment
-
Bug Fix
-
VLAN interfaces with dot in their name (on operating systems such as FreeBSD) were not being correctly displayed by Facter 4 in the networking fact. This fix allows the default networking resolver to recognize interfaces with dot in their name.
-
Needs Assessment
Description
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]]
|