diff options
Diffstat (limited to 'lib')
-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 |