Sha256: 869891e01ec0c8a4486c549f8d4b30043a4a84df9a1e8ef3c16626c90f129e88
Contents?: true
Size: 611 Bytes
Versions: 7
Compression:
Stored size: 611 Bytes
Contents
# frozen_string_literal: true module Facts module Linux module Networking class Netmask FACT_NAME = 'networking.netmask' ALIASES = 'netmask' def call_the_resolver interfaces = Facter::Resolvers::NetworkingLinux.resolve(:interfaces) primary = Facter::Resolvers::NetworkingLinux.resolve(:primary_interface) fact_value = interfaces[primary][:netmask] if interfaces && interfaces[primary] [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems