summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriant8600.rb
blob: 1398949303753048895afdcb2d952dea76820406 (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 Coriant8600 < Oxidized::Model

  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, :ssh do
    username /^user name:$/
    password /^password:$/
    pre_logout 'exit'
    post_login 'enable'
    post_login 'terminal more off'
  end

end