Sha256: d34c487f1829a7dbdce31a7d590e75ce8c3cd97be94e077166d8121fd346c259
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module Facts module Openbsd class NetmaskInterfaces FACT_NAME = 'netmask_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::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
5 entries across 5 versions & 1 rubygems