summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/cisconga.rb
blob: 37cb4e4af00f3e1afbab32b326d97888571749a9 (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|
    comment cfg
  end
  
  cfg :ssh do
    post_login 'terminal length 0'
    pre_logout 'exit'
  end

end