Sha256: 82a6994738ac5ed6898a0b1807b7cfb157a1bf15b799c3f68e887cb764ed2f73

Contents?: true

Size: 326 Bytes

Versions: 74

Compression:

Stored size: 326 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

74 entries across 74 versions & 3 rubygems

Version Path
facter-2.1.0 lib/facter/vlans.rb
facter-2.1.0-x86-mingw32 lib/facter/vlans.rb
facter-2.1.0-x64-mingw32 lib/facter/vlans.rb
facter-2.1.0-universal-darwin lib/facter/vlans.rb
facter-1.7.6 lib/facter/vlans.rb
facter-2.0.2 lib/facter/vlans.rb
facter-2.0.2-x86-mingw32 lib/facter/vlans.rb
facter-2.0.2-universal-darwin lib/facter/vlans.rb
facter-2.0.1 lib/facter/vlans.rb
facter-2.0.1-x86-mingw32 lib/facter/vlans.rb
facter-2.0.1-universal-darwin lib/facter/vlans.rb
facter-2.0.1.rc4 lib/facter/vlans.rb
facter-2.0.1.rc4-x86-mingw32 lib/facter/vlans.rb
facter-2.0.1.rc4-universal-darwin lib/facter/vlans.rb
facter-2.0.1.rc3 lib/facter/vlans.rb
facter-2.0.1.rc3-x86-mingw32 lib/facter/vlans.rb
facter-2.0.1.rc3-universal-darwin lib/facter/vlans.rb
facter-2.0.1.rc2 lib/facter/vlans.rb
facter-2.0.1.rc2-x86-mingw32 lib/facter/vlans.rb
facter-2.0.1.rc2-universal-darwin lib/facter/vlans.rb