summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/netscaler.rb
blob: 9ca66b63d2ab50b7081db4d889f72895158c2698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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