summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/netscaler.rb
blob: 00d1b71eda774dc436aac0ff007d90daf07e25e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class NetScaler < Oxidized::Model
  prompt /^\>\s*$/
  comment '# '

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-3].join
  end

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

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

  cmd 'show ns ns.conf'

  cfg :ssh do
    pre_logout 'exit'
  end
end