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
bolt-0.21.7 vendored/facter/lib/facter/vlans.rb
bolt-0.21.6 vendored/facter/lib/facter/vlans.rb
bolt-0.21.5 vendored/facter/lib/facter/vlans.rb
bolt-0.21.4 vendored/facter/lib/facter/vlans.rb
bolt-0.21.3 vendored/facter/lib/facter/vlans.rb
bolt-0.21.2 vendored/facter/lib/facter/vlans.rb
bolt-0.21.1 vendored/facter/lib/facter/vlans.rb
bolt-0.21.0 vendored/facter/lib/facter/vlans.rb
bolt-0.20.7 vendored/facter/lib/facter/vlans.rb
bolt-0.20.6 vendored/facter/lib/facter/vlans.rb
bolt-0.20.5 vendored/facter/lib/facter/vlans.rb
bolt-0.20.3 vendored/facter/lib/facter/vlans.rb
bolt-0.20.2 vendored/facter/lib/facter/vlans.rb
bolt-0.19.1 vendored/facter/lib/facter/vlans.rb
bolt-0.19.0 vendored/facter/lib/facter/vlans.rb
bolt-0.18.2 vendored/facter/lib/facter/vlans.rb
bolt-0.18.1 vendored/facter/lib/facter/vlans.rb
bolt-0.18.0 vendored/facter/lib/facter/vlans.rb
bolt-0.17.2 vendored/facter/lib/facter/vlans.rb
bolt-0.17.1 vendored/facter/lib/facter/vlans.rb