summaryrefslogtreecommitdiff
path: root/plugins/facter/interfaces.rb
diff options
context:
space:
mode:
authoram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-31 17:17:48 +0000
committeram <am@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-31 17:17:48 +0000
commit98308a8466a20ed23fa727ab1de8f511c427cd91 (patch)
treee84c79966b06706be93cbc3edf49c7722bcbc4ff /plugins/facter/interfaces.rb
parente456a220e2830b34f96604ec7bf520293c1c7d38 (diff)
rename
git-svn-id: https://rfd.cronopios.org/ipuppet/trunk/modules/munin@641 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'plugins/facter/interfaces.rb')
-rwxr-xr-xplugins/facter/interfaces.rb13
1 files changed, 0 insertions, 13 deletions
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