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
commitfe4187be6078076fa34c8d272561554b8f205e8b (patch)
treee84c79966b06706be93cbc3edf49c7722bcbc4ff /plugins/facter/interfaces.rb
parent132098aa8fa7c6ffb7630a1005e2c734b6069c76 (diff)
rename
git-svn-id: https://svn/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