summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/cisconga.rb
blob: 73fb51caa3b792e2f6331d5a964fa7a9e03b1da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class CiscoNGA < Oxidized::Model

  comment '# '
  prompt /([\w.@-]+[#>]\s?)$/

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

  cmd 'show configuration' do |cfg|
    cfg
  end
  
  cfg :ssh do
    post_login 'terminal length 0'
    pre_logout 'exit'
  end

end