From 98308a8466a20ed23fa727ab1de8f511c427cd91 Mon Sep 17 00:00:00 2001 From: am Date: Thu, 31 Jan 2008 17:17:48 +0000 Subject: rename git-svn-id: https://rfd.cronopios.org/ipuppet/trunk/modules/munin@641 d66ca3ae-40d7-4aa7-90d4-87d79ca94279 --- plugins/facter/interfaces.rb | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 plugins/facter/interfaces.rb (limited to 'plugins/facter/interfaces.rb') diff --git a/plugins/facter/interfaces.rb b/plugins/facter/interfaces.rb deleted file mode 100755 index 4bf10bc..0000000 --- a/plugins/facter/interfaces.rb +++ /dev/null @@ -1,13 +0,0 @@ -# return the set of active interfaces as an array -Facter.add("facterinterfaces") do - setcode do - `ip -o link show`.split(/\n/).collect do |line| - value = nil - matches = line.match(/^\d*: ([^:]*): <(.*,)?UP(,.*)?>/) - if !matches.nil? - value = matches[1] - end - value - end.compact.sort.join(" ") - end -end -- cgit v1.2.3