Sha256: 21e5c76984e94b52edd258e74e7831ad9decf078344e5e27f7fa811034acb544

Contents?: true

Size: 328 Bytes

Versions: 99

Compression:

Stored size: 328 Bytes

Contents

# Fact: vlans
#
# Purpose: On Linux, return a list of all the VLANs on the system.
#
# Resolution: On Linux only, checks for and reads `/proc/net/vlan/config` and
# parses it.
#
# Caveats:
#
require 'facter/util/vlans'

Facter.add("vlans") do
  confine :kernel => :linux
  setcode do
    Facter::Util::Vlans.get_vlans
  end
end

Version data entries

99 entries across 99 versions & 2 rubygems

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