Skip to content

Commit

Permalink
Permit underscores in interface names on FreeBSD
Browse files Browse the repository at this point in the history
This is common when using epair interfaces in VNET jails

Signed-off-by:	Mark Felder <[email protected]>
  • Loading branch information
feld committed Oct 10, 2024
1 parent 38116d1 commit dd13a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ohai/plugins/freebsd/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
so = shell_out("#{Ohai.abs_path( "/sbin/ifconfig" )} -a")
cint = nil
so.stdout.lines do |line|
if line =~ /^([0-9a-zA-Z\.]+):\s+/
if line =~ /^([0-9a-zA-Z\._]+):\s+/
cint = $1
iface[cint] = Mash.new
if cint =~ /^(\w+)(\d+.*)/
Expand Down

0 comments on commit dd13a95

Please sign in to comment.