class Facts::Linux::MtuInterfaces
Constants
- FACT_NAME
- TYPE
Public Instance Methods
Source
# File lib/facter/facts/linux/mtu_interfaces.rb, line 9 def call_the_resolver arr = [] interfaces = Facter::Resolvers::Linux::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("mtu_#{interface_name}", info[:mtu], :legacy) if info[:mtu] end arr end