diff options
author | Eric Lindsjö <eric.lindsjo@glesys.se> | 2016-10-26 09:01:37 +0200 |
---|---|---|
committer | Eric Lindsjö <eric.lindsjo@glesys.se> | 2016-10-26 09:01:37 +0200 |
commit | f8f5d43f732b7567dc26a2c12cc13f44a604458c (patch) | |
tree | 4ecd56fee2e700d8d21c9ecd106389c77a3f6504 | |
parent | 30ca54954dea0e186ddeb066d720743685e8d836 (diff) |
Added Support for MRV FiberDriver Linux based management module
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | lib/oxidized/model/fiberdriver.rb | 21 |
2 files changed, 22 insertions, 0 deletions
@@ -124,6 +124,7 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen * [RFS](lib/oxidized/model/mtrlrfs.rb) * MRV * [MasterOS](lib/oxidized/model/masteros.rb) + * [FiberDriver](lib/oxidized/model/fiberdriver.rb) * Netonix * [WISP Switch (As Netonix)](lib/oxidized/model/netonix.rb) * Nokia (formerly TiMetra, Alcatel, Alcatel-Lucent) diff --git a/lib/oxidized/model/fiberdriver.rb b/lib/oxidized/model/fiberdriver.rb new file mode 100644 index 0000000..8f8eb07 --- /dev/null +++ b/lib/oxidized/model/fiberdriver.rb @@ -0,0 +1,21 @@ +class FiberDriver < Oxidized::Model + prompt /\w+#/ + comment "! " + + cmd :all do |cfg| + cfg.each_line.to_a[1..-2].join + end + cmd 'show inventory' do |cfg| + comment cfg + end + + cmd "show running-config" do |cfg| + cfg.each_line.to_a[3..-1].join + end + + cfg :ssh do + post_login 'terminal length 0' + post_login 'terminal width 512' + pre_logout 'exit' + end +end |