Sha256: 071522e29e68d539c6411f0a6a0026a4ffa7e65b5adee0009119dfc752e60ce6
Contents?: true
Size: 482 Bytes
Versions: 34
Compression:
Stored size: 482 Bytes
Contents
# frozen_string_literal: true module Facts module Linux class NetmaskInterfaces FACT_NAME = 'netmask_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::Linux::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("netmask_#{interface_name}", info[:netmask], :legacy) if info[:netmask] end arr end end end end
Version data entries
34 entries across 34 versions & 1 rubygems