diff options
author | ytti <saku@ytti.fi> | 2016-10-26 13:08:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 13:08:46 +0300 |
commit | 207a9145c9965b3efe84eb48d3f8ed290b3c30a6 (patch) | |
tree | 4ecd56fee2e700d8d21c9ecd106389c77a3f6504 /lib/oxidized/model | |
parent | 30ca54954dea0e186ddeb066d720743685e8d836 (diff) | |
parent | f8f5d43f732b7567dc26a2c12cc13f44a604458c (diff) |
Merge pull request #595 from emjemj/master
Added Support for MRV FiberDriver Linux based management module
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/fiberdriver.rb | 21 |
1 files changed, 21 insertions, 0 deletions
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 |