summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/cisconga.rb
blob: 9764351bc4b2261d96a01abc2a6d67677ee63e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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