Sha256: cd25778fe3ac2363710bb8cbbdf6daed4d165d8f0d6c9779893fc5d2bc21bd44

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
facter-1.6.1 lib/facter/vlans.rb
facter-1.6.0 lib/facter/vlans.rb