blob: e44dde78764e80b3682277e5e01c3b29f5c9224c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
module Oxidized
require 'fileutils'
FileUtils.mkdir_p Config::Root
CFG.username = 'username'
CFG.password = 'password'
CFG.model = 'junos'
CFG.interval = 30
CFG.log = File.join Config::Root, 'log'
CFG.debug = false
CFG.threads = 10
CFG.timeout = 5
CFG.prompt = /^([\w\.\-@]{3,30}[#>]\s?)$/
CFG.input = {
:default => 'ssh',
}
CFG.output = {
:default => 'git',
}
CFG.source = {
:default => 'ascii',
}
CFG.model_map = {
'cisco' => 'ios',
'juniper' => 'junos',
}
CFG.save
end
|