Sha256: 346757b2202c598a94047dbad3520e19241ab832504f6892978917ca88684bd0
Contents?: true
Size: 460 Bytes
Versions: 29
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module Facts module Linux class MtuInterfaces FACT_NAME = 'mtu_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::NetworkingLinux.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("mtu_#{interface_name}", info[:mtu], :legacy) if info[:mtu] end arr end end end end
Version data entries
29 entries across 29 versions & 1 rubygems