oxidized 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +4 -0
  3. data/.rubocop.yml +3 -0
  4. data/CHANGELOG.md +26 -2
  5. data/Dockerfile +8 -32
  6. data/README.md +17 -5
  7. data/bin/oxidized +1 -1
  8. data/docs/Configuration.md +41 -3
  9. data/docs/Hooks.md +26 -0
  10. data/docs/Model-Notes/AireOS.md +1 -2
  11. data/docs/Model-Notes/ArbOS.md +1 -2
  12. data/docs/Model-Notes/Comware.md +1 -2
  13. data/docs/Model-Notes/EOS.md +1 -2
  14. data/docs/Model-Notes/JunOS.md +1 -2
  15. data/docs/Model-Notes/Netgear.md +5 -6
  16. data/docs/Model-Notes/Nokia.md +9 -0
  17. data/docs/Model-Notes/README.md +3 -2
  18. data/docs/Model-Notes/VRP-Huawei.md +1 -2
  19. data/docs/Model-Notes/Viptela.md +12 -0
  20. data/docs/Model-Notes/XGS4600-Zyxel.md +1 -2
  21. data/docs/Ruby-API.md +54 -2
  22. data/docs/Supported-OS-Types.md +12 -0
  23. data/extra/oxidized.service +7 -0
  24. data/lib/oxidized/cli.rb +7 -0
  25. data/lib/oxidized/config.rb +3 -0
  26. data/lib/oxidized/core.rb +1 -0
  27. data/lib/oxidized/hook/ciscosparkdiff.rb +11 -17
  28. data/lib/oxidized/hook/slackdiff.rb +5 -11
  29. data/lib/oxidized/hook/xmppdiff.rb +1 -0
  30. data/lib/oxidized/input/ssh.rb +43 -27
  31. data/lib/oxidized/input/telnet.rb +1 -0
  32. data/lib/oxidized/model/acos.rb +2 -2
  33. data/lib/oxidized/model/acsw.rb +6 -6
  34. data/lib/oxidized/model/adtran.rb +22 -0
  35. data/lib/oxidized/model/aen.rb +2 -2
  36. data/lib/oxidized/model/aireos.rb +3 -2
  37. data/lib/oxidized/model/alteonos.rb +2 -2
  38. data/lib/oxidized/model/aos.rb +1 -1
  39. data/lib/oxidized/model/aos7.rb +1 -1
  40. data/lib/oxidized/model/aosw.rb +5 -3
  41. data/lib/oxidized/model/apc_aos.rb +1 -1
  42. data/lib/oxidized/model/arbos.rb +2 -2
  43. data/lib/oxidized/model/asa.rb +8 -2
  44. data/lib/oxidized/model/awplus.rb +1 -1
  45. data/lib/oxidized/model/axos.rb +16 -0
  46. data/lib/oxidized/model/c4cmts.rb +3 -5
  47. data/lib/oxidized/model/casa.rb +1 -1
  48. data/lib/oxidized/model/catos.rb +1 -1
  49. data/lib/oxidized/model/ciscosma.rb +1 -1
  50. data/lib/oxidized/model/ciscosmb.rb +10 -4
  51. data/lib/oxidized/model/comtrol.rb +41 -0
  52. data/lib/oxidized/model/comware.rb +1 -1
  53. data/lib/oxidized/model/coriantgroove.rb +4 -6
  54. data/lib/oxidized/model/cumulus.rb +14 -1
  55. data/lib/oxidized/model/datacom.rb +1 -2
  56. data/lib/oxidized/model/dcnos.rb +1 -1
  57. data/lib/oxidized/model/dellx.rb +76 -0
  58. data/lib/oxidized/model/dlink.rb +2 -2
  59. data/lib/oxidized/model/dnos.rb +3 -1
  60. data/lib/oxidized/model/eciapollo.rb +34 -0
  61. data/lib/oxidized/model/edgecos.rb +1 -0
  62. data/lib/oxidized/model/edgeos.rb +6 -1
  63. data/lib/oxidized/model/eos.rb +3 -2
  64. data/lib/oxidized/model/fiberdriver.rb +1 -1
  65. data/lib/oxidized/model/firebrick.rb +31 -0
  66. data/lib/oxidized/model/firewareos.rb +1 -1
  67. data/lib/oxidized/model/fortios.rb +5 -4
  68. data/lib/oxidized/model/ftos.rb +4 -1
  69. data/lib/oxidized/model/fujitsupy.rb +3 -3
  70. data/lib/oxidized/model/gaiaos.rb +1 -1
  71. data/lib/oxidized/model/gcombnps.rb +3 -1
  72. data/lib/oxidized/model/hatteras.rb +1 -1
  73. data/lib/oxidized/model/hirschmann.rb +2 -2
  74. data/lib/oxidized/model/hpebladesystem.rb +1 -1
  75. data/lib/oxidized/model/ios.rb +21 -13
  76. data/lib/oxidized/model/ipos.rb +3 -3
  77. data/lib/oxidized/model/ironware.rb +3 -3
  78. data/lib/oxidized/model/isam.rb +1 -1
  79. data/lib/oxidized/model/junos.rb +1 -1
  80. data/lib/oxidized/model/masteros.rb +2 -3
  81. data/lib/oxidized/model/mlnxos.rb +5 -5
  82. data/lib/oxidized/model/model.rb +3 -0
  83. data/lib/oxidized/model/ndms.rb +1 -2
  84. data/lib/oxidized/model/netgear.rb +7 -9
  85. data/lib/oxidized/model/netonix.rb +1 -1
  86. data/lib/oxidized/model/netscaler.rb +6 -1
  87. data/lib/oxidized/model/nos.rb +2 -2
  88. data/lib/oxidized/model/oneos.rb +1 -1
  89. data/lib/oxidized/model/openbsd.rb +8 -22
  90. data/lib/oxidized/model/openwrt.rb +1 -0
  91. data/lib/oxidized/model/opnsense.rb +1 -1
  92. data/lib/oxidized/model/panos.rb +9 -9
  93. data/lib/oxidized/model/pfsense.rb +2 -1
  94. data/lib/oxidized/model/planet.rb +1 -1
  95. data/lib/oxidized/model/powerconnect.rb +7 -4
  96. data/lib/oxidized/model/procurve.rb +7 -5
  97. data/lib/oxidized/model/routeros.rb +1 -1
  98. data/lib/oxidized/model/saos.rb +1 -1
  99. data/lib/oxidized/model/screenos.rb +3 -3
  100. data/lib/oxidized/model/sros.rb +2 -2
  101. data/lib/oxidized/model/stoneos.rb +1 -1
  102. data/lib/oxidized/model/tmos.rb +2 -0
  103. data/lib/oxidized/model/tplink.rb +4 -0
  104. data/lib/oxidized/model/viptela.rb +29 -0
  105. data/lib/oxidized/model/voltaire.rb +5 -5
  106. data/lib/oxidized/model/voss.rb +4 -4
  107. data/lib/oxidized/model/vrp.rb +1 -1
  108. data/lib/oxidized/model/vyatta.rb +1 -1
  109. data/lib/oxidized/model/weos.rb +1 -1
  110. data/lib/oxidized/model/xos.rb +9 -2
  111. data/lib/oxidized/node.rb +20 -31
  112. data/lib/oxidized/nodes.rb +3 -0
  113. data/lib/oxidized/output/git.rb +17 -20
  114. data/lib/oxidized/output/gitcrypt.rb +2 -1
  115. data/lib/oxidized/output/http.rb +19 -12
  116. data/lib/oxidized/source/csv.rb +15 -8
  117. data/lib/oxidized/source/http.rb +26 -22
  118. data/lib/oxidized/string.rb +9 -4
  119. data/lib/oxidized/version.rb +2 -2
  120. data/lib/oxidized/worker.rb +44 -36
  121. data/oxidized.gemspec +1 -4
  122. metadata +26 -16
@@ -20,13 +20,10 @@ Gem::Specification.new do |s|
20
20
  s.required_ruby_version = '>= 2.0.0'
21
21
  s.add_runtime_dependency 'asetus', '~> 0.1'
22
22
  s.add_runtime_dependency 'net-ssh', '~> 4.1.0'
23
+ s.add_runtime_dependency 'net-telnet', '~> 0.1.1'
23
24
  s.add_runtime_dependency 'rugged', '~> 0.21', '>= 0.21.4'
24
25
  s.add_runtime_dependency 'slop', '~> 3.5'
25
26
 
26
- if defined?(RUBY_VERSION) && RUBY_VERSION > '2.3'
27
- s.add_runtime_dependency 'net-telnet', '~> 0'
28
- end
29
-
30
27
  s.add_development_dependency 'simplecov'
31
28
  if ENV['CI'] == 'true'
32
29
  s.add_development_dependency 'codecov'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-06-14 00:00:00.000000000 Z
13
+ date: 2018-12-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: asetus
@@ -40,6 +40,20 @@ dependencies:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 4.1.0
43
+ - !ruby/object:Gem::Dependency
44
+ name: net-telnet
45
+ requirement: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: 0.1.1
50
+ type: :runtime
51
+ prerelease: false
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - "~>"
55
+ - !ruby/object:Gem::Version
56
+ version: 0.1.1
43
57
  - !ruby/object:Gem::Dependency
44
58
  name: rugged
45
59
  requirement: !ruby/object:Gem::Requirement
@@ -74,20 +88,6 @@ dependencies:
74
88
  - - "~>"
75
89
  - !ruby/object:Gem::Version
76
90
  version: '3.5'
77
- - !ruby/object:Gem::Dependency
78
- name: net-telnet
79
- requirement: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- type: :runtime
85
- prerelease: false
86
- version_requirements: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: simplecov
93
93
  requirement: !ruby/object:Gem::Requirement
@@ -210,6 +210,7 @@ executables:
210
210
  extensions: []
211
211
  extra_rdoc_files: []
212
212
  files:
213
+ - ".codeclimate.yml"
213
214
  - ".github/PULL_REQUEST_TEMPLATE.md"
214
215
  - ".github/no-response.yml"
215
216
  - ".gitignore"
@@ -235,8 +236,10 @@ files:
235
236
  - docs/Model-Notes/EOS.md
236
237
  - docs/Model-Notes/JunOS.md
237
238
  - docs/Model-Notes/Netgear.md
239
+ - docs/Model-Notes/Nokia.md
238
240
  - docs/Model-Notes/README.md
239
241
  - docs/Model-Notes/VRP-Huawei.md
242
+ - docs/Model-Notes/Viptela.md
240
243
  - docs/Model-Notes/XGS4600-Zyxel.md
241
244
  - docs/Outputs.md
242
245
  - docs/Ruby-API.md
@@ -284,6 +287,7 @@ files:
284
287
  - lib/oxidized/manager.rb
285
288
  - lib/oxidized/model/acos.rb
286
289
  - lib/oxidized/model/acsw.rb
290
+ - lib/oxidized/model/adtran.rb
287
291
  - lib/oxidized/model/aen.rb
288
292
  - lib/oxidized/model/aireos.rb
289
293
  - lib/oxidized/model/airos.rb
@@ -299,6 +303,7 @@ files:
299
303
  - lib/oxidized/model/asyncos.rb
300
304
  - lib/oxidized/model/audiocodes.rb
301
305
  - lib/oxidized/model/awplus.rb
306
+ - lib/oxidized/model/axos.rb
302
307
  - lib/oxidized/model/boss.rb
303
308
  - lib/oxidized/model/br6910.rb
304
309
  - lib/oxidized/model/c4cmts.rb
@@ -309,6 +314,7 @@ files:
309
314
  - lib/oxidized/model/ciscosma.rb
310
315
  - lib/oxidized/model/ciscosmb.rb
311
316
  - lib/oxidized/model/comnetms.rb
317
+ - lib/oxidized/model/comtrol.rb
312
318
  - lib/oxidized/model/comware.rb
313
319
  - lib/oxidized/model/coriant8600.rb
314
320
  - lib/oxidized/model/coriantgroove.rb
@@ -316,8 +322,10 @@ files:
316
322
  - lib/oxidized/model/cumulus.rb
317
323
  - lib/oxidized/model/datacom.rb
318
324
  - lib/oxidized/model/dcnos.rb
325
+ - lib/oxidized/model/dellx.rb
319
326
  - lib/oxidized/model/dlink.rb
320
327
  - lib/oxidized/model/dnos.rb
328
+ - lib/oxidized/model/eciapollo.rb
321
329
  - lib/oxidized/model/edgecos.rb
322
330
  - lib/oxidized/model/edgeos.rb
323
331
  - lib/oxidized/model/edgeswitch.rb
@@ -325,6 +333,7 @@ files:
325
333
  - lib/oxidized/model/eos.rb
326
334
  - lib/oxidized/model/fabricos.rb
327
335
  - lib/oxidized/model/fiberdriver.rb
336
+ - lib/oxidized/model/firebrick.rb
328
337
  - lib/oxidized/model/firewareos.rb
329
338
  - lib/oxidized/model/fortios.rb
330
339
  - lib/oxidized/model/ftos.rb
@@ -378,6 +387,7 @@ files:
378
387
  - lib/oxidized/model/tplink.rb
379
388
  - lib/oxidized/model/trango.rb
380
389
  - lib/oxidized/model/ucs.rb
390
+ - lib/oxidized/model/viptela.rb
381
391
  - lib/oxidized/model/voltaire.rb
382
392
  - lib/oxidized/model/voss.rb
383
393
  - lib/oxidized/model/vrp.rb