diff options
author | Koen van den Heuvel <hello@koenvdheuvel.me> | 2017-07-29 23:55:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-29 23:55:33 +0200 |
commit | ff1a54102606dfc47d7fb33036ccbb3cb2edde2a (patch) | |
tree | cb094543ab8c65a5b336b3b6f2f76ef2f8c21209 /lib/oxidized/model/enterasys.rb | |
parent | c5259b379534fc02a176a857faa7e2fd8f8196a5 (diff) |
Support for Enterasys SecureStack
Diffstat (limited to 'lib/oxidized/model/enterasys.rb')
-rw-r--r-- | lib/oxidized/model/enterasys.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/oxidized/model/enterasys.rb b/lib/oxidized/model/enterasys.rb new file mode 100644 index 0000000..fb5a501 --- /dev/null +++ b/lib/oxidized/model/enterasys.rb @@ -0,0 +1,25 @@ +class Enterasys < Oxidized::Model + + # Enterasys B3 model # + + prompt /^.+\w\(su\)->\s?$/ + + comment '!' + + cmd :all do |cfg| + cfg.each_line.to_a[1..-2].join + end + + cmd 'show system hardware' do |cfg| + cfg + end + + cmd 'show config' do |cfg| + cfg + end + + cfg :ssh do + pre_logout 'exit' + end + +end |