summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/corianttmos.rb
blob: 76603f6c4fca2f7cb55f893ba8059552f1b46193 (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 CoriantTmos < Oxidized::Model

  comment '# '
  
  prompt /^[^\s#]+#\s$/

  cmd 'show node extensive' do |cfg|
    comment cfg
  end

  cmd 'show run' do |cfg|
    cfg
  end

  cfg :telnet do
    username /^Login:\s$/
    password /^Password:\s$/
  end

  cfg :telnet, :ssh do
    pre_logout 'exit'
    post_login 'enable config terminal length 0'
  end
  
end