summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriant8600.rb
blob: 2e8bb764c11e14e4299d4cc5aa62ead17b32b971 (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
26
27
28
class Coriant8600 < Oxidized::Model
  comment '# '

  prompt /^[^\s#>]+[#>]$/

  cmd 'show hw-inventory' do |cfg|
    comment cfg
  end

  cmd 'show flash' do |cfg|
    comment cfg
  end

  cmd 'show run' do |cfg|
    cfg
  end

  cfg :telnet do
    username /^user name:$/
    password /^password:$/
  end

  cfg :telnet, :ssh do
    pre_logout 'exit'
    post_login 'enable'
    post_login 'terminal more off'
  end
end