From 96668cc2dc0367e3d1a3ec94265ce889b62d8ada Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 19 Apr 2013 12:36:45 +0300 Subject: Add restful API --- lib/oxidized/config/bootstrap.rb | 3 ++- lib/oxidized/config/defaults.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/config') diff --git a/lib/oxidized/config/bootstrap.rb b/lib/oxidized/config/bootstrap.rb index e44dde7..2991fa3 100644 --- a/lib/oxidized/config/bootstrap.rb +++ b/lib/oxidized/config/bootstrap.rb @@ -10,6 +10,7 @@ module Oxidized CFG.threads = 10 CFG.timeout = 5 CFG.prompt = /^([\w\.\-@]{3,30}[#>]\s?)$/ + CFG.rest = 8888 CFG.input = { :default => 'ssh', } @@ -17,7 +18,7 @@ module Oxidized :default => 'git', } CFG.source = { - :default => 'ascii', + :default => 'csv', } CFG.model_map = { 'cisco' => 'ios', diff --git a/lib/oxidized/config/defaults.rb b/lib/oxidized/config/defaults.rb index a07e1a6..943d90b 100644 --- a/lib/oxidized/config/defaults.rb +++ b/lib/oxidized/config/defaults.rb @@ -5,6 +5,7 @@ module Oxidized OutputDir = File.join Directory, %w(lib oxidized output) ModelDir = File.join Directory, %w(lib oxidized model) SourceDir = File.join Directory, %w(lib oxidized source) + Sleep = 1 end class << self attr_accessor :mgr -- cgit v1.2.1