summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/redback.rb
blob: f6847f7cded6ca3a21d0cfddd3a83ef7daac8353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Redback < Oxidized::Model
  prompt /^([\[\]\w.@-]+[#>]\s?)$/
  # Ericsson Redback

  cmd 'show chassis'
  cmd 'show hardware detail'
  cmd 'show release'
  cmd 'show config'

  cfg :telnet do
    username /^login:/
    password /^\r*password:/
  end

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

end