diff options
author | Jonas Genannt <jonas@brachium-system.net> | 2010-04-12 20:23:31 +0200 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2010-06-13 00:52:00 +1000 |
commit | ffcae46df5d5336995348544139540c0e564ae2e (patch) | |
tree | 279571bc75e50e6a8da65250667e08c7b74c22e8 /lib/facter/vlans.rb | |
parent | d4b8401dc4b2323a0c162e59e3f98b355d2c3c40 (diff) | |
download | facter-ffcae46df5d5336995348544139540c0e564ae2e.tar.gz facter-ffcae46df5d5336995348544139540c0e564ae2e.tar.xz facter-ffcae46df5d5336995348544139540c0e564ae2e.zip |
Fixed #3403 - Added fact to query vlans; added spec test
Diffstat (limited to 'lib/facter/vlans.rb')
-rw-r--r-- | lib/facter/vlans.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/facter/vlans.rb b/lib/facter/vlans.rb new file mode 100644 index 0000000..d65bdd8 --- /dev/null +++ b/lib/facter/vlans.rb @@ -0,0 +1,8 @@ +require 'facter/util/vlans' + + Facter.add("vlans") do + confine :kernel => :linux + setcode do + Facter::Util::Vlans.get_vlans + end + end |