summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/enterasys.rb
blob: fb5a501646c8c164d9f9cd3f5b9ea51c4c3b5e67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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