Sha256: bee722ff5fed6fcc6a08fb6887befe174773c252180a4ca33dcda99679ed6d8c

Contents?: true

Size: 452 Bytes

Versions: 99

Compression:

Stored size: 452 Bytes

Contents

# Fact: network
#
# Purpose:
#   Get IP, network, and netmask information for available network
#   interfaces.
#
# Resolution:
#   Uses `facter/util/ip` to enumerate interfaces and return their information.
#
# Caveats:
#
require 'facter/util/ip'

Facter::Util::IP.get_interfaces.each do |interface|
  Facter.add("network_" + Facter::Util::IP.alphafy(interface)) do
    setcode do
      Facter::Util::IP.get_network_value(interface)
    end
  end
end

Version data entries

99 entries across 99 versions & 2 rubygems

Version Path
facter-2.5.7 lib/facter/network.rb
facter-2.5.7-x86-mingw32 lib/facter/network.rb
facter-2.5.7-x64-mingw32 lib/facter/network.rb
facter-2.5.7-universal-darwin lib/facter/network.rb
facter-2.5.6-x86-mingw32 lib/facter/network.rb
facter-2.5.6-x64-mingw32 lib/facter/network.rb
facter-2.5.6-universal-darwin lib/facter/network.rb
facter-2.5.6 lib/facter/network.rb
facter-2.5.5-x86-mingw32 lib/facter/network.rb
facter-2.5.5-x64-mingw32 lib/facter/network.rb
facter-2.5.5-universal-darwin lib/facter/network.rb
facter-2.5.5 lib/facter/network.rb
facter-2.5.4-x86-mingw32 lib/facter/network.rb
facter-2.5.4-x64-mingw32 lib/facter/network.rb
facter-2.5.4-universal-darwin lib/facter/network.rb
facter-2.5.4 lib/facter/network.rb
bolt-0.24.0 vendored/facter/lib/facter/network.rb
bolt-0.23.0 vendored/facter/lib/facter/network.rb
bolt-0.22.0 vendored/facter/lib/facter/network.rb
bolt-0.21.8 vendored/facter/lib/facter/network.rb