summaryrefslogtreecommitdiffstats
path: root/lib/facter/vlans.rb
blob: 8c485a43b3f27036b193f4fb73935fabba521247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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